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