Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J1cugeLkfFLZMpiztQ8TyN
90 lines
2.0 KiB
Lua
90 lines
2.0 KiB
Lua
-- Window, layer and workspace rules.
|
|
|
|
-- Ignore maximize requests from all apps.
|
|
hl.window_rule({
|
|
name = "suppress-maximize-events",
|
|
match = { class = ".*" },
|
|
|
|
suppress_event = "maximize",
|
|
})
|
|
|
|
-- Fix some dragging issues with XWayland.
|
|
hl.window_rule({
|
|
name = "fix-xwayland-drags",
|
|
match = {
|
|
class = "^$",
|
|
title = "^$",
|
|
xwayland = true,
|
|
float = true,
|
|
fullscreen = false,
|
|
pin = false,
|
|
},
|
|
|
|
no_focus = true,
|
|
})
|
|
|
|
-- Hyprland-run windowrule.
|
|
hl.window_rule({
|
|
name = "move-hyprland-run",
|
|
match = { class = "hyprland-run" },
|
|
|
|
move = "20 monitor_h-120",
|
|
float = true,
|
|
})
|
|
|
|
-- Anything fullscreen keeps the screen awake (video players, games, browsers).
|
|
hl.window_rule({
|
|
name = "idle-inhibit-fullscreen",
|
|
match = { class = ".*" },
|
|
|
|
idle_inhibit = "fullscreen",
|
|
})
|
|
|
|
------------------
|
|
---- NOCTALIA ----
|
|
------------------
|
|
|
|
-- Settings window floats at a comfortable size.
|
|
hl.window_rule({
|
|
name = "noctalia-settings",
|
|
match = { class = "dev.noctalia.Noctalia" },
|
|
|
|
float = true,
|
|
size = { 1080, 920 },
|
|
})
|
|
|
|
-- Blur behind the bar, panels, dock and notifications; Hyprland's own layer
|
|
-- animations are off so they do not fight Noctalia's.
|
|
hl.layer_rule({
|
|
name = "noctalia",
|
|
match = {
|
|
namespace = "^noctalia-(bar-.+|notification|dock|panel|attached-panel|osd|window-switcher)$",
|
|
},
|
|
|
|
no_anim = true,
|
|
ignore_alpha = 0.5,
|
|
blur = true,
|
|
blur_popups = true,
|
|
})
|
|
|
|
----------------
|
|
---- GAMING ----
|
|
----------------
|
|
|
|
-- Steam Big Picture games (steam_app_<id>) may tear for lower input latency.
|
|
-- This only takes effect in fullscreen with general.allow_tearing enabled.
|
|
hl.window_rule({
|
|
name = "steam-games-tearing",
|
|
match = { class = "^steam_app_\\d+$" },
|
|
|
|
immediate = true,
|
|
})
|
|
|
|
-- Steam's small utility windows.
|
|
hl.window_rule({
|
|
name = "steam-utility-windows",
|
|
match = { class = "^steam$", title = "^(Friends List|Steam Settings)$" },
|
|
|
|
float = true,
|
|
})
|