91 lines
1.9 KiB
Lua
91 lines
1.9 KiB
Lua
-- Workspace to monitor mapping
|
|
for i = 1, 5 do
|
|
hl.workspace_rule({ workspace = i, monitor = "DP-1" })
|
|
end
|
|
|
|
for i = 6, 10 do
|
|
hl.workspace_rule({ workspace = i, monitor = "HDMI-A-1" })
|
|
end
|
|
|
|
-- See https://wiki.hypr.land/Configuring/Basics/Window-Rules/
|
|
-- and https://wiki.hypr.land/Configuring/Basics/Workspace-Rules/
|
|
|
|
-- Example window rules that are useful
|
|
|
|
local suppressMaximizeRule = hl.window_rule({
|
|
-- Ignore maximize requests from all apps. You'll probably like this.
|
|
name = "suppress-maximize-events",
|
|
match = { class = ".*" },
|
|
|
|
suppress_event = "maximize",
|
|
})
|
|
-- suppressMaximizeRule:set_enabled(false)
|
|
|
|
hl.window_rule({
|
|
-- Set Pegasus to fullscreen
|
|
name = "pegasus-fullscreen",
|
|
match = { class = "pegasus-frontend" },
|
|
fullscreen = true,
|
|
})
|
|
|
|
hl.window_rule({
|
|
-- Always float Bitwarden
|
|
name = "bitwarden-float",
|
|
match = { title = "Bitwarden - Vivaldi" },
|
|
float = true,
|
|
})
|
|
|
|
hl.window_rule({
|
|
-- Always float Game Splash Screen
|
|
name = "gsplash-float",
|
|
match = { class = "gsplash" },
|
|
float = true,
|
|
content = "game",
|
|
})
|
|
|
|
hl.window_rule({
|
|
-- SCREENCHEAT fullscreen
|
|
name = "screencheat-fullscreen",
|
|
match = { title = "SCREENCHEAT" },
|
|
fullscreen = true,
|
|
})
|
|
|
|
hl.window_rule({
|
|
-- Always float Satty
|
|
name = "satty-float",
|
|
match = { class = "com.gabm.satty" },
|
|
float = true,
|
|
})
|
|
|
|
hl.window_rule({
|
|
-- Fix some dragging issues with XWayland
|
|
name = "fix-xwayland-drags",
|
|
match = {
|
|
class = "^$",
|
|
title = "^$",
|
|
xwayland = true,
|
|
float = true,
|
|
fullscreen = false,
|
|
pin = false,
|
|
},
|
|
|
|
no_focus = true,
|
|
})
|
|
|
|
-- Layer rules also return a handle.
|
|
-- local overlayLayerRule = hl.layer_rule({
|
|
-- name = "no-anim-overlay",
|
|
-- match = { namespace = "^my-overlay$" },
|
|
-- no_anim = true,
|
|
-- })
|
|
-- overlayLayerRule:set_enabled(false)
|
|
|
|
-- Hyprland-run windowrule
|
|
hl.window_rule({
|
|
name = "move-hyprland-run",
|
|
match = { class = "hyprland-run" },
|
|
|
|
move = "20 monitor_h-120",
|
|
float = true,
|
|
})
|