aboutsummaryrefslogtreecommitdiff
path: root/dot_config/hypr/config/rules.lua
diff options
context:
space:
mode:
authorpablu <me@pablu.de>2026-05-12 23:16:21 +0200
committerpablu <me@pablu.de>2026-05-12 23:16:21 +0200
commit84f687e9f1d21376bf099c51c1c57ae703b4648c (patch)
treed08fc117f68970e85eff63c12f8ce25a24902989 /dot_config/hypr/config/rules.lua
parent66ed635dba4f3429d75fc066f2eaf2f8d1899c72 (diff)
Change to lua style for hyprland
Diffstat (limited to 'dot_config/hypr/config/rules.lua')
-rw-r--r--dot_config/hypr/config/rules.lua47
1 files changed, 47 insertions, 0 deletions
diff --git a/dot_config/hypr/config/rules.lua b/dot_config/hypr/config/rules.lua
new file mode 100644
index 0000000..b3c5024
--- /dev/null
+++ b/dot_config/hypr/config/rules.lua
@@ -0,0 +1,47 @@
+-- No gaps when only window
+hl.workspace_rule({ workspace = "w[tv1]", gaps_out = 0, gaps_in = 0 })
+hl.workspace_rule({ workspace = "f[1]", gaps_out = 0, gaps_in = 0 })
+hl.window_rule({
+ name = "no-gaps-wtv1",
+ match = { float = false, workspace = "w[tv1]" },
+ border_size = 0,
+ rounding = 0,
+})
+hl.window_rule({
+ name = "no-gaps-f1",
+ match = { float = false, workspace = "f[1]" },
+ border_size = 0,
+ rounding = 0,
+})
+
+
+-- Workspaces to monitors
+for i = 1, 6 do
+ hl.workspace_rule({ workspace = tostring(i), monitor = MAIN_DISPLAY, persistent = true })
+end
+for i = 6, 10 do
+ hl.workspace_rule({ workspace = tostring(i), monitor = SECONDARY_DISPLAY, persistent = true })
+end
+
+
+hl.window_rule({
+ name = "steam",
+ match = {
+ class = "steam"
+ },
+ monitor = SECONDARY_DISPLAY,
+ workspace = "7 silent",
+ no_initial_focus = true,
+ focus_on_activate = false,
+ suppress_event = "activatefocus"
+})
+
+hl.window_rule({
+ name = "steam_notifications",
+ match = {
+ class = "^(steam)$",
+ title = "^(notificationtoasts_*)$"
+ },
+ no_focus = true,
+ no_initial_focus = true
+})