aboutsummaryrefslogtreecommitdiff
path: root/dot_config/hypr/config/rules.lua
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config/hypr/config/rules.lua')
-rw-r--r--dot_config/hypr/config/rules.lua20
1 files changed, 17 insertions, 3 deletions
diff --git a/dot_config/hypr/config/rules.lua b/dot_config/hypr/config/rules.lua
index 971ba32..0e17e4a 100644
--- a/dot_config/hypr/config/rules.lua
+++ b/dot_config/hypr/config/rules.lua
@@ -16,11 +16,11 @@ hl.window_rule({
-- Workspaces to monitors
-for i = 1, 6 do
- hl.workspace_rule({ workspace = tostring(i), monitor = MAIN_DISPLAY, persistent = true })
+for i = 1, 5 do
+ hl.workspace_rule({ workspace = tostring(i), monitor = MAIN_DISPLAY, persistent = true, default = i == 1 })
end
for i = 6, 10 do
- hl.workspace_rule({ workspace = tostring(i), monitor = SECONDARY_DISPLAY, persistent = true })
+ hl.workspace_rule({ workspace = tostring(i), monitor = SECONDARY_DISPLAY, persistent = true, default = i == 6 })
end
@@ -59,3 +59,17 @@ hl.window_rule({
focus_on_activate = false,
suppress_event = "active activatefocus"
})
+
+hl.window_rule({
+ match = {
+ class = "gamescope"
+ },
+ immediate = true,
+ monitor = MAIN_DISPLAY,
+ content = "game",
+ decorate = false,
+ keep_aspect_ratio = false,
+ no_anim = true,
+ no_blur = true,
+ no_shadow = true,
+})