add groups and window rules

Amolith created

Change summary

dot_config/hypr/hyprland.conf.tmpl | 12 ++++++++++++
1 file changed, 12 insertions(+)

Detailed changes

dot_config/hypr/hyprland.conf.tmpl 🔗

@@ -120,6 +120,12 @@ gestures {
     {{- end }}
 }
 
+group {
+      insert_after_current = false
+      col.border_active = rgba(000000ee)
+      col.border_inactive = rgba(000000ee)
+}
+
 misc {
     # See https://wiki.hyprland.org/Configuring/Variables/ for more
     disable_hyprland_logo   = true
@@ -135,6 +141,8 @@ misc {
 # windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
 # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
 windowrulev2 = nomaximizerequest, class:.* # You'll probably like this.
+windowrulev2 = workspace 4,class:(steam)
+windowrulev2 = workspace 6,class:(org.gajim.Gajim|org.telegram.desktop)
 
 
 # See https://wiki.hyprland.org/Configuring/Keywords/ for more
@@ -169,6 +177,10 @@ bind  = $mod      , N, exec, dunstctl close-all
 bind  = $mod SHIFT, N, exec, dunstctl history-pop
 bind  = $mod CTRL , N, exec, dunstctl context
 
+# Window groups (analogous to i3 tabs)
+bind = $mod SHIFT, g, togglegroup
+bind = $mod      , g, changegroupactive
+
 # Move focus with mod + arrow keys
 bind = $mod, left , movefocus, l
 bind = $mod, right, movefocus, r