summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--roles/hyprland/tasks/main.yml2
-rw-r--r--roles/hyprland/templates/hyprland/hyprland.conf.j21
-rw-r--r--roles/hyprland/templates/hyprland/input.conf.j24
-rw-r--r--roles/hyprland/templates/hyprland/looknfeel.conf.j22
-rw-r--r--roles/hyprland/templates/hyprland/rules.conf.j211
5 files changed, 15 insertions, 5 deletions
diff --git a/roles/hyprland/tasks/main.yml b/roles/hyprland/tasks/main.yml
index 855b1f67..5afb6f1e 100644
--- a/roles/hyprland/tasks/main.yml
+++ b/roles/hyprland/tasks/main.yml
@@ -51,5 +51,7 @@
dest: "/etc/hypr/envs.conf"
- src: "hyprland/looknfeel.conf.j2"
dest: "/etc/hypr/looknfeel.conf"
+ - src: "hyprland/rules.conf.j2"
+ dest: "/etc/hypr/rules.conf"
- src: "hyprland/hyprland.conf.j2"
dest: "/etc/hypr/hyprland.conf"
diff --git a/roles/hyprland/templates/hyprland/hyprland.conf.j2 b/roles/hyprland/templates/hyprland/hyprland.conf.j2
index 3e2c08a3..36ba5f26 100644
--- a/roles/hyprland/templates/hyprland/hyprland.conf.j2
+++ b/roles/hyprland/templates/hyprland/hyprland.conf.j2
@@ -8,3 +8,4 @@ source = /etc/hypr/input.conf
source = /etc/hypr/bindings.conf
source = /etc/hypr/envs.conf
source = /etc/hypr/looknfeel.conf
+source = /etc/hypr/rules.conf
diff --git a/roles/hyprland/templates/hyprland/input.conf.j2 b/roles/hyprland/templates/hyprland/input.conf.j2
index 01f50b02..758635f6 100644
--- a/roles/hyprland/templates/hyprland/input.conf.j2
+++ b/roles/hyprland/templates/hyprland/input.conf.j2
@@ -27,10 +27,6 @@ input {
}
}
-# Scroll nicely in the terminal
-windowrule = scrolltouchpad 1.5, class:(Alacritty|kitty)
-windowrule = scrolltouchpad 0.2, class:com.mitchellh.ghostty
-
# Enable touchpad gestures for changing workspaces
# See https://wiki.hyprland.org/Configuring/Gestures/
# gesture = 3, horizontal, workspace
diff --git a/roles/hyprland/templates/hyprland/looknfeel.conf.j2 b/roles/hyprland/templates/hyprland/looknfeel.conf.j2
index 5a738b9c..3f6fe2ec 100644
--- a/roles/hyprland/templates/hyprland/looknfeel.conf.j2
+++ b/roles/hyprland/templates/hyprland/looknfeel.conf.j2
@@ -133,7 +133,7 @@ misc {
disable_splash_rendering = true
focus_on_activate = true
anr_missed_pings = 3
- new_window_takes_over_fullscreen = 1
+ on_focus_under_fullscreen = 1
}
# https://wiki.hypr.land/Configuring/Variables/#cursor
diff --git a/roles/hyprland/templates/hyprland/rules.conf.j2 b/roles/hyprland/templates/hyprland/rules.conf.j2
new file mode 100644
index 00000000..a02d6302
--- /dev/null
+++ b/roles/hyprland/templates/hyprland/rules.conf.j2
@@ -0,0 +1,11 @@
+# Scroll nicely in the terminal
+windowrule = scroll_touchpad 1.5, match:class (Alacritty|kitty)
+windowrule = scroll_touchpad 0.2, match:class com.mitchellh.ghostty
+
+# Floating windows
+windowrule = float on, match:tag floating-window
+windowrule = center on, match:tag floating-window
+windowrule = size 875 600, match:tag floating-window
+
+windowrule = tag +floating-window, match:class (work.kartoffln.bluetui|work.kartoffln.btop)
+windowrule = float on, match:class org.gnome.Calculator