Files
I-Dotfiles/.config/hypr/settings/windowrules.lua
T

109 lines
1.4 KiB
Lua

local classes = {
"pavucontrol",
"blueman-manager",
"nm-connection-editor",
"mpv",
"swayimg",
".*org.pulseaudio.pavucontrol.*",
}
local titles = {
"Picture in Picture",
"Friends List",
"Save Image - *",
"AniShio",
}
for _, class in ipairs(classes) do
hl.window_rule({
match = {
class = "^" .. class .. "$",
},
float = true,
})
end
for _, title in ipairs(titles) do
hl.window_rule({
match = {
title = "^" .. title .. "$",
},
float = true,
})
end
hl.window_rule({
match = {
initial_title = "Brawlhalla",
},
-- float = true,
fullscreen_state = 3,
content = "game",
})
hl.window_rule({
match = {
class = "osu!",
title = "osu!",
},
fullscreen_state = 3,
content = "game",
})
hl.window_rule({
match = {
class = "hyprland-share-picker",
title = "hyprland-share-picker",
},
float = true,
pin = true,
center = true,
size = { 600, 400 },
})
hl.window_rule({
name = "fix-xwayland-drags",
match = {
class = "^$",
title = "^$",
xwayland = true,
float = true,
fullscreen = false,
pin = false,
},
no_focus = true,
})
hl.window_rule({
match = {
float = false,
},
no_shadow = true,
})
hl.window_rule({
match = {
fullscreen_state_internal = 2,
},
idle_inhibit = "always",
})
hl.window_rule({
match = {
fullscreen_state_client = 2,
},
idle_inhibit = "always",
})
hl.window_rule({
match = {
content = "game",
},
idle_inhibit = "always",
})