Fix windowrules and add host-config

This commit is contained in:
Jeena 2026-01-28 06:39:39 +01:00
parent 17d13449cc
commit 94dfc20b24
4 changed files with 62 additions and 17 deletions

View file

@ -20,8 +20,8 @@ env = HYPRSHOT_DIR,Screenshots
################
# See https://wiki.hyprland.org/Configuring/Monitors/
# monitor=,preferred,auto,auto
monitor=DP-1, 2560x1440@74.97Hz, 0x0, 1
# Safe default for any machine
monitor = ,preferred,auto,1
###################
### MY PROGRAMS ###
@ -298,14 +298,25 @@ bindl = , XF86AudioPrev, exec, playerctl previous
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
# Example windowrule
# windowrule = float,class:^(kitty)$,title:^(kitty)$
# windowrule = float,class:org.keepassxc.KeePassXC
windowrule {
name = suppress-maximize
match:class = .*
suppress_event = maximize
}
# Ignore maximize requests from apps. You'll probably like this.
windowrulev2 = suppress_event maximize, match:class:.*
windowrule {
name = xwayland-nofocus-fix
match:class = ^$
match:title = ^$
match:xwayland = 1
match:float = 1
match:fullscreen = 0
match:pin = 0
# Fix some dragging issues with XWayland
windowrulev2 = nofocus, class:^$, title:^$, xwayland:1, floating:1, fullscreen:0, pinned:0
no_focus = on
}
source = ~/.config/hypr/windowrule.conf
# Host overrides
source = ~/.config/hypr/hosts/host.conf

View file

@ -1,9 +1,31 @@
# Librewolf Picture-in-Picture
windowrulev2 = float, class:($browser),title:(Picture-in-Picture)
windowrulev2 = pin, class:($browser),title:(Picture-in-Picture)
windowrulev2 = opacity 1.0 override 1.0 override, match:class:($browser), match:title:(Picture-in-Picture)
# LibreWolf Picture-in-Picture
windowrule {
name = librewolf-pip
match:class = ($browser)
match:title = (Picture-in-Picture)
float = on
pin = on
opacity = 1.0 override 1.0 override
}
# Cheatsheet
windowrulev2 = float, class:net.jeena.Cheatsheet
windowrulev2 = center, class:net.jeena.Cheatsheet
windowrulev2 = stayfocused, class:net.jeena.Cheatsheet
windowrule {
name = cheatsheet-window
match:class = net.jeena.Cheatsheet
float = on
center = on
}
windowrule {
name = chromium-ws3
match:class = chromium
workspace = 3 silent
}
windowrule {
name = keepassxc-magic
match:class = org.keepassxc.KeePassXC
workspace = special:magic silent
}