hypr: clean up config and split into modules

This commit is contained in:
Nico 2026-01-03 22:41:44 +11:00
parent f4a53155b2
commit 6ff4720291
Signed by: nico
SSH key fingerprint: SHA256:XuacYOrGqRxC3jVFjfLROn1CSvLz85Dec6N7O9Gwu/0
4 changed files with 263 additions and 241 deletions

View file

@ -0,0 +1,95 @@
#
# windows and workspaces
# https://wiki.hyprland.org/Configuring/Window-Rules/ for more
# https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
windowrule {
name = windowrule-1
suppress_event = maximize
match:class = .* # You'll probably like this.
}
windowrule {
name = inhibit-fullscreen
idle_inhibit = fullscreen
match:initial_title = (.*)
}
windowrule {
name = float-keypass-confirmation
float = on
match:initial_title = (^KeePassXC - Browser Access Request$)
}
windowrule {
name = windowrule-6
float = on
pin = on
no_initial_focus = on
size = (monitor_w*0.2)
move = ((monitor_w*0.76)) ((monitor_h*0.005))
keep_aspect_ratio = on
match:initial_title = (^Picture-in-Picture$)
match:initial_class = (^firefox$)
}
windowrule {
name = hide-xwaylandvideobridge
move = (-(monitor_w*1)) (-(monitor_h*1))
no_initial_focus = on
match:initial_class = (^xwaylandvideobridge$)
}
windowrule {
name = polkit
dim_around = on
center = on
float = on
pin = on
stay_focused = on
animation = gnomed
match:initial_title = (^Hyprland Polkit Agent$)
}
windowrule {
name = opensnitch-confirmation
dim_around = on
stay_focused = on
animation = slidein
float = on
size = 960 540
center = on
match:initial_class = (^opensnitch_ui$)
match:initial_title = negative:(^OpenSnitch Network Statistics 1.8.0$)
}
windowrule {
name = steam-onscreen-keyboard
pin = on
no_blur = on
border_size = 0
no_shadow = on
match:initial_title = (^Steam Input On-screen Keyboard$)
}
# disable fade animation for vicinae only
layerrule {
name = layerrule-1
no_anim = on
blur = on
ignore_alpha = 0
match:namespace = vicinae
}
# layer rules
layerrule {
name = layerrule-2
animation = slide right
match:namespace = waybar
}