Bug: gui is not closed with alt_r
Bind command:
bind = ALT, Tab, exec, hyprswitch gui --mod-key alt --key tab --close mod-key-release --reverse-key=mod=shift --sort-recent -w && hyprswitch dispatch
Steps to reproduce:
- Press
alt_r+shift.
Expected behavior: gui is closed and client is selected.
Actual behavior: client is selected but gui is not closed.
This command works only with alt_r:
bindrt = alt, alt_r, exec, notify-send test release
Versions:
Hyprland 0.48.1 built from branch at commit 29e2e59fdbab8ed2cc23a20e3c6043d5decb5cdc (version: bump to v0.48.1).
hyprswitch 3.3.2
--mod-key alt_r should work.
The new version binds close on left and right keys. You only need to set the right _r or _l modifier for opening, if none is set left is assumed
I would like to make it close both on alt_l and alt_r. When I bind with ALT, Tab, exec, hyprswitch ... with --mod-key alt it doesn't close on alt_r (as you told alt by default is alt_l), but command is triggered because ALT in hyprland is both alt_l and alt_r. So when I press alt_r + Tab command is triggered but it doesn't close the window because it waits for alt_l.
I tried --mod-key alt_r but now it doesn't close when I press alt_l.
Does the new version support it?
The new version binds the alt_r and alt_l for release if it sees a modifier used as a key.
Added in 4.0.0