hyprswitch icon indicating copy to clipboard operation
hyprswitch copied to clipboard

Bug: gui is not closed with alt_r

Open klephron opened this issue 8 months ago • 3 comments

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:

  1. 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

klephron avatar May 10 '25 08:05 klephron

--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

H3rmt avatar May 10 '25 20:05 H3rmt

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?

klephron avatar May 20 '25 16:05 klephron

The new version binds the alt_r and alt_l for release if it sees a modifier used as a key.

H3rmt avatar May 21 '25 12:05 H3rmt

Added in 4.0.0

H3rmt avatar Jun 01 '25 13:06 H3rmt