summaryrefslogtreecommitdiff
path: root/dot-config/hypr/rules.conf
diff options
context:
space:
mode:
Diffstat (limited to 'dot-config/hypr/rules.conf')
-rw-r--r--dot-config/hypr/rules.conf10
1 files changed, 8 insertions, 2 deletions
diff --git a/dot-config/hypr/rules.conf b/dot-config/hypr/rules.conf
index b3be2b2c..3e0ec622 100644
--- a/dot-config/hypr/rules.conf
+++ b/dot-config/hypr/rules.conf
@@ -42,7 +42,6 @@ windowrule = match:tag gui-utils, animation slide right top
# media contents
windowrule = match:tag media-contents, float on
windowrule = match:tag media-contents, pin on
-windowrule = match:tag media-contents, move (monitor_w-window_w-$outer_gaps) 0
windowrule = match:tag media-contents, no_initial_focus on
windowrule = match:tag media-contents, no_shadow on
windowrule = match:tag media-contents, keep_aspect_ratio on
@@ -50,6 +49,12 @@ windowrule = match:tag media-contents, no_dim on
# It grabs our focus when it change video
windowrule = match:tag media-contents, suppress_event activatefocus
+# positions
+windowrule = match:tag top-left, move 0 0
+windowrule = match:tag top-right, move (monitor_w-window_w) 0
+windowrule = match:tag bottom-left, move 0 (monitor_h-window_h)
+windowrule = match:tag bottom-right, move (monitor_w-window_w) (monitor_h-window_h)
+
# fake fullscreen
windowrule = match:tag fakefullscreen, fullscreen_state 0 2
@@ -151,10 +156,11 @@ windowrule = match:title ^Extension, float on
# for media contents
windowrule = match:class ^(blobdrop|dragon|dragon-drop)$, tag +media-contents
+windowrule = match:class ^(blobdrop|dragon|dragon-drop)$, tag +bottom-right
# PIP
windowrule = match:title ^(Picture-in-Picture)$, tag +media-contents
windowrule = match:title ^(Picture-in-Picture)$, size (monitor_w*0.25) (monitor_h*0.25)
-windowrule = match:title ^(Picture-in-Picture)$, move (monitor_w-window_w-$outer_gaps) 0
+windowrule = match:title ^(Picture-in-Picture)$, tag +top-right
# removes title/border
windowrule = match:class ^(thorium-mdpkiolbdkhdjpekfbkbmhigcaggjagi-Profile_1|thorium-lnachpgegbbmnnlgpokibfjlmppeciah-Default)$, tag +fakefullscreen