[Binds] Fix swapescape
This commit is contained in:
@@ -20,10 +20,8 @@ submap = device
|
|||||||
|
|
||||||
|
|
||||||
# ── Swapescape ──────────────────────────────────────────────────────
|
# ── Swapescape ──────────────────────────────────────────────────────
|
||||||
bind = , ., exec, hyprctl keyword input:kb_options "caps:swapescape"
|
bind = , S, exec, fish -c "toggle-swapescape"
|
||||||
bind = , ., exec, submap, reset
|
bind = , S, submap, reset
|
||||||
bind = , :, exec, hyprctl keyword input:kb_options ""
|
|
||||||
bind = , :, exec, submap, reset
|
|
||||||
|
|
||||||
|
|
||||||
# ── FPV goggles binds ───────────────────────────────────────────────
|
# ── FPV goggles binds ───────────────────────────────────────────────
|
||||||
|
|||||||
10
scripts/toggle-swapescape
Executable file
10
scripts/toggle-swapescape
Executable file
@@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
enabled=$(hyprctl getoption input:kb_options | grep "caps:swapescape")
|
||||||
|
if [[ $enabled == "" ]]; then
|
||||||
|
hyprctl keyword input:kb_options "caps:swapescape"
|
||||||
|
notify-send "Swapescape enabled"
|
||||||
|
else
|
||||||
|
hyprctl keyword input:kb_options ""
|
||||||
|
notify-send "Swapescape disabled"
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user