128 lines
2.3 KiB
Lua

-- #Blanket Rule to avoid screenlock if an app is fullscreen
hl.window_rule ({
match = fullscreen, true,
idle_inhibit = on
})
-- Blanket Rule for pop-up Dialog windows
hl.window_rule ({
match = modal, true,
center = true,
float = true
})
hl.window_rule ({
name = "Cava_Rules",
match = {
class = "^(kitty-bg)$",
},
opacity = "1.0",
float = true,
workspace = 10,
fullscreen = true
})
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 = true,
opacity = 1
})
hl.window_rule ({
name = "Hyprland_Picker_Rules",
match = {
class = "^(hyprland-share-picker)$",
},
float = true,
size = { 400, 250},
center = true
})
hl.window_rule ({
name = "Discord_Rules",
match = {
class = "^(vesktop||vesktop-bin|discord)$",
},
opaque = true,
no_initial_focus = true,
workspace = 14,
fullscreen= true
})
hl.window_rule ({
name = "Browser_Rules",
match = {
class = "^(LibreWolf)$",
},
workspace = 3,
idle_inhibit = fullscreen,
fullscreen = true
})
hl.window_rule ({
name = "Special_Rules",
match = {
class= "^(URxvt|kitty|com.mitchellh.ghostty)$",
},
workspace = "special:term",
float = true,
size = { 1520, 800 },
center = true
})
hl.window_rule ({
name = "FragPunk Game", -- Game not receiving mouse input
match = {
title = "^(FragPunk)$",
},
-- allows_input = true,
--no_max_size = true,
float = off,
center = off,
--size = "1920, 1080",
fullscreen = true,
stay_focused = true
})
hl.window_rule ({
name = "Minecraft",
match = {
class = "^(Minecraft)$",
},
allows_input = true,
stay_focused = true
})
hl.window_rule ({
name = "Ark Ascended",
match = {
class = "^(steam_app_2399830)$",
},
fullscreen = false,
workspace = 2,
stay_focused = true
})
hl.window_rule ({
name = "Steam Window",
match = {
class = "^(steam)$",
},
float = true,
center = true,
workspace = 1
})
-- #RULE VALE DEFINITION
-- #allows_input [true] 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)
-- #####