prepared for the windowRule syntax rewrite

(cherry picked from commit 86638522e2)
This commit is contained in:
2025-12-30 19:56:32 +01:00
parent 8967ee0f7c
commit 1f9da5af1f

View File

@@ -4,8 +4,8 @@
#
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor=eDP-1, 1920x1080@60, 2560x0, 1
monitor=HDMI-A-2, 2560x1440@74.78, 0x0, 1
#monitor=eDP-1,1920x1080@120, 0x0, 1
monitor=HDMI-A-1,2560x1440@74.78, 1920x0, 1
#monitor=DP-1,2560x1440@60,1920x0, 1
@@ -29,6 +29,9 @@ env = XDG_SESSION_DESKTOP=Hyprland
env = XDG_SESSION_HOME=~
#auto start
exec-once=~/bin/startup.sh
exec-once=~/bin/suspend.sh
exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once=systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
@@ -139,10 +142,10 @@ master {
#no_gaps_when_only=true
}
gestures {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
#gestures {
# # See https://wiki.hyprland.org/Configuring/Variables/ for more
# workspace_swipe = off
}
#}
# Example per-device config
# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
@@ -166,7 +169,7 @@ bind = $mainMod SHIFT, Q, exec, alacritty
bind = $mainMod, C, killactive,
bind = $mainMod, W, killactive,
bind = $mainMod, M, exit,
bind = $mainMod, E, exec, nemo
bind = $mainMod, E, exec, nautilus #nemo
bind = $mainMod, Y, exec, copyq toggle
bind = $mainMod, A, exec, swaync-client -t -sw
bind = $mainMod, V, togglefloating,
@@ -200,6 +203,11 @@ bindl = , switch:off:Lid Switch,exec,hyprctl keyword monitor "eDP-1, preferred,
# # trigger when the switch is turning on
bindl = , switch:on:Lid Switch,exec,hyprctl keyword monitor "eDP-1, disable"
# Desktop zooming or magnifier
bindd = $mainMod ALT, mouse_down, zoom in, exec, hyprctl keyword cursor:zoom_factor "$(hyprctl getoption cursor:zoom_factor | awk 'NR==1 {factor = $2; if (factor < 1) {factor = 1}; print factor * 2.0}')"
bindd = $mainMod ALT, mouse_up, zoom out, exec, hyprctl keyword cursor:zoom_factor "$(hyprctl getoption cursor:zoom_factor | awk 'NR==1 {factor = $2; if (factor < 1) {factor = 1}; print factor / 2.0}')"
# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
@@ -297,5 +305,33 @@ windowrule = stayfocused,class:(zoom),title:(^$)
windowrulev2 = float,class:^(one.alynx.showmethekey)$
windowrulev2 = float,class:^(showmethekey-gtk)$ # make window floating
windowrulev2 = pin,class:^(showmethekey-gtk)$ # pin window
windowrule = stayfocused, title:^(menu window)$, class:^(zoom)$
windowrule = stayfocused, title:^(confirm window)$, class:^(zoom)$
windowrulev2 = tile, class:^(com-zerenesystems-stacker-gui-MainFrame)$
windowrule=tile,title:A Ren(.)Py Game
#windowrule {
# name=float
# match:class = com.github.hluk.copyq
# match:class = clight-gui
# match:class = localsend
# match:class = blueman-manager
#
# float = on
#}
#
#windowrule {
# name = stay-focused
# match:class = (steam)
# match:class = ^(zoom)$
# stayfocused = on
#}
#
#windowrule {
# name = tiled
# match:class = ^(com-zerenesystems-stacker-gui-MainFrame)$
# match:title = (A Ren(.)Py Game)
# tiled = on
#}
windowrule=tile,title:A Ren'Py Game