bind: new long press option (#867)

for https://github.com/hyprwm/Hyprland/pull/8302
This commit is contained in:
littleblack111 2024-11-16 07:22:15 +08:00 committed by GitHub
parent 052b616ffe
commit 23caaeea4a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -203,6 +203,7 @@ Flags:
```plain
l -> locked, will also work when an input inhibitor (e.g. a lockscreen) is active.
r -> release, will trigger on release of a key.
o -> longPress, will trigger on long press of a key.
e -> repeat, will repeat when held.
n -> non-consuming, key/mouse events will be passed to the active window in addition to triggering the dispatcher.
m -> mouse, see below.
@ -228,6 +229,10 @@ bindr = SUPER, SUPER_L, exec, pkill wofi || wofi
# Describe a bind
bindd = SUPER, Q, Open my favourite terminal, exec, kitty
# Skip player on long press and only skip 5s on normal press
bindo = SUPER, XF86AudioNext, exec, playerctl next
bind = SUPER, XF86AudioNext, exec, playerctl position +5
```
# See Mouse Binds section for bindm usage
```