136 lines
2.8 KiB
Lua
136 lines
2.8 KiB
Lua
-- # WINDOW RULES
|
|
|
|
-- # XWayland Video Bridge
|
|
-- # windowrule = workspace 10 silent,class:^(xwaylandvideobridge)$
|
|
-- # windowrule = opacity 0.0 override,class:^(xwaylandvideobridge)$
|
|
-- # windowrule = noanim,class:^(xwaylandvideobridge)$
|
|
-- # windowrule = noinitialfocus,class:^(xwaylandvideobridge)$
|
|
-- # windowrule = maxsize 1 1,class:^(xwaylandvideobridge)$
|
|
-- # windowrule = noblur,class:^(xwaylandvideobridge)$
|
|
-- # windowrule = move 2000 1100,class:^(xwaylandvideobridge)$
|
|
|
|
-- #Blanket Rule to avoid screenlock if an app is fullscreen
|
|
-- #windowrule = idle_inhibit on, match:fullscreen 1
|
|
|
|
hl.window_rule ({
|
|
name = "Cava_Rules",
|
|
match = {
|
|
class = "^(kitty-bg)$",
|
|
},
|
|
opacity = "1.0",
|
|
float = true,
|
|
workspace = 10,
|
|
fullscreen = on
|
|
})
|
|
hl.window_rule ({
|
|
name = "Rofi_Rules",
|
|
match = {
|
|
class = "^(Rofi)$",
|
|
},
|
|
float = true
|
|
})
|
|
|
|
hl.window_rule ({
|
|
name = "POLKIT_Rules",
|
|
match = {
|
|
class = "^(org.kde.polkit-kde-authentication-agent-1)$"
|
|
},
|
|
float = on,
|
|
opacity = 1
|
|
})
|
|
|
|
hl.window_rule ({
|
|
name = "Hyprland_Picker_Rules",
|
|
match = {
|
|
class = "^(hyprland-share-picker)$",
|
|
},
|
|
float = on,
|
|
size = { 400, 250},
|
|
center = on
|
|
})
|
|
|
|
hl.window_rule ({
|
|
name = "Discord_Rules",
|
|
match = {
|
|
class = "^(vesktop||vesktop-bin|discord)$",
|
|
},
|
|
opaque = true,
|
|
no_initial_focus = on,
|
|
workspace = 14,
|
|
fullscreen= on
|
|
})
|
|
|
|
hl.window_rule ({
|
|
name = "Browser_Rules",
|
|
match = {
|
|
class = "^(LibreWolf)$",
|
|
},
|
|
workspace = 3,
|
|
idle_inhibit = fullscreen,
|
|
fullscreen = on
|
|
})
|
|
|
|
hl.window_rule ({
|
|
name = "Special_Rules",
|
|
match = {
|
|
class= "^(URxvt|kitty|com.mitchellh.ghostty)$",
|
|
},
|
|
workspace = "special:term",
|
|
float = on,
|
|
size = { 1520, 800 },
|
|
center = on
|
|
})
|
|
|
|
-- window_rule ({
|
|
-- name = "FragPunk Game",
|
|
-- match = {
|
|
-- title = "^(FragPunk)$",
|
|
-- },
|
|
-- allows_input = on,
|
|
-- no_max_size = on,
|
|
-- float = on,
|
|
-- center = on,
|
|
-- size = 1920, 1080,
|
|
-- stay_focused = on
|
|
-- })
|
|
|
|
hl.window_rule ({
|
|
name = "Minecraft",
|
|
match = {
|
|
class = "^(Minecraft)$",
|
|
},
|
|
allows_input = on,
|
|
stay_focused = on
|
|
})
|
|
|
|
hl.window_rule ({
|
|
name = "Ark Ascended",
|
|
match = {
|
|
class = "^(steam_app_2399830)$",
|
|
},
|
|
fullscreen = off,
|
|
workspace = 2,
|
|
stay_focused = on
|
|
})
|
|
|
|
hl.window_rule ({
|
|
name = "Steam Window",
|
|
match = {
|
|
class = "^(steam)$",
|
|
},
|
|
float = on,
|
|
center = on,
|
|
workspace = 1
|
|
})
|
|
|
|
-- ### RULES FOR GAMES ###
|
|
-- #RULE VALE DEFINITION
|
|
-- #allows_input [on] Forces an XWayland window to receive input, even if it requests not to do so. (Might fix issues like Game Launchers not receiving focus for some reason)
|
|
-- #####
|
|
-- # Special Workspace Rules
|
|
-- #windowrule = workspace special,class:^(com.mitchellh.ghostty)$
|
|
-- #windowrule = float,class:^(com.mitchellh.ghostty)$
|
|
-- #windowrule = workspace special,class:^(kitty)$
|
|
-- #windowrule = float,class:^(kitty)$
|
|
-- # windowrule = workspace 5,class:^(kitty)$
|