mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-07 04:30:55 +02:00
Rename apps/quickshell.lua to apps/omarchy-shell.lua and gather every
rule that targets a Quickshell surface owned by the shell:
- menu and image-selector layer rules (image-selector moved out of
apps/system.lua, where it didn't belong with generic floating /
media / idle rules)
- new window rules so the settings panel floats centered at 960x700
instead of tiling
The settings panel is a transient dialog, not a workspace surface, so
tiling it disrupts the layout and leaves it awkwardly tall when it lands
in a half-screen split. Class+title scoping keeps the rule from leaking
into other org.quickshell windows (menu, image picker, etc.).
16 lines
983 B
Lua
16 lines
983 B
Lua
-- Window and layer rules for the Omarchy Quickshell surfaces. The
|
|
-- shell-wide bar / menu / popouts are layer-shell; the settings panel is
|
|
-- a regular Hyprland window via Quickshell's FloatingWindow.
|
|
|
|
-- Keep the menu instant: no layer-shell fade/slide animation.
|
|
hl.layer_rule({ match = { namespace = "omarchy-menu" }, no_anim = true, animation = "none" })
|
|
|
|
-- Image selector overlay should also pop without animation.
|
|
hl.layer_rule({ match = { namespace = "omarchy-image-selector" }, no_anim = true, animation = "none" })
|
|
|
|
-- Settings panel floats centered with a sensible default size instead of
|
|
-- tiling — it's a transient dialog, not a workspace surface.
|
|
hl.window_rule({ match = { class = "^org.quickshell$", title = "^Omarchy Settings$" }, float = true })
|
|
hl.window_rule({ match = { class = "^org.quickshell$", title = "^Omarchy Settings$" }, center = true })
|
|
hl.window_rule({ match = { class = "^org.quickshell$", title = "^Omarchy Settings$" }, size = { 960, 700 } })
|