Sfoglia il codice sorgente

more and better window rules

Noah Vogt 20 ore fa
parent
commit
580fcf672b
1 ha cambiato i file con 29 aggiunte e 11 eliminazioni
  1. 29 11
      dot-config/hypr/hyprland.conf

+ 29 - 11
dot-config/hypr/hyprland.conf

@@ -12,7 +12,7 @@ $mainMod = SUPER
 $terminal = kitty
 $fileManager = nautilus
 $menu = fuzzel
-$browser = brave
+$browser = chromium
 
 #################
 ### AUTOSTART ###
@@ -352,11 +352,8 @@ bindl = , XF86AudioPrev, exec, playerctl previous
 # See https://wiki.hypr.land/Configuring/Window-Rules/ for more
 # See https://wiki.hypr.land/Configuring/Workspace-Rules/ for workspace rules
 
-# Example windowrules that are useful
-
 windowrule {
     name = opaque-floating
-
     match:float = true
 
     opacity = 1.0 override 1.0 override
@@ -370,23 +367,22 @@ windowrule {
     suppress_event = maximize
 }
 
+# Fix some dragging issues with XWayland
 windowrule {
-    # Fix some dragging issues with XWayland
     name = fix-xwayland-drags
     match:class = ^$
+
     match:title = ^$
     match:xwayland = true
     match:float = true
     match:fullscreen = false
     match:pin = false
-
     no_focus = true
 }
 
 # Hyprland-run windowrule
 windowrule {
     name = move-hyprland-run
-
     match:class = hyprland-run
 
     move = 20 monitor_h-120
@@ -394,20 +390,42 @@ windowrule {
 }
 
 windowrule {
-    name = browser-opacity
-
-    match:class = ^(chromium|brave-browser)$
+    name = browser-opacity-and-workspace
+    match:class = ^($browser)$
 
     opacity = 1.0 override 1.0 override
     opaque = true
+    workspace = 2
 }
 
-# Xwayland Video Bridge
 windowrule {
     name = xwayland-video-bridge
     match:class = ^(xwaylandvideobridge)$
+
     opacity = 0.0 override 0.0 override
+    workspace = 9
     no_initial_focus = true
     max_size = 1 1
     no_blur = true
 }
+
+windowrule{
+    name = keepassxc-workspace
+    match:class = ^(org.keepassxc.KeePassXC)$
+
+    workspace = 5
+}
+
+windowrule{
+    name = localsend-workspace
+    match:class = ^(localsend)$
+
+    workspace = 10
+}
+
+windowrule{
+    name = logseq-workspace
+    match:class = ^(Logseq)$
+
+    workspace = 6
+}