diff options
Diffstat (limited to '.scripts')
-rwxr-xr-x | .scripts/toggle-keyboard-hypr | 11 | ||||
-rwxr-xr-x | .scripts/toggle-touchpad-hypr (renamed from .scripts/touchpad-disable-hypr) | 2 |
2 files changed, 12 insertions, 1 deletions
diff --git a/.scripts/toggle-keyboard-hypr b/.scripts/toggle-keyboard-hypr new file mode 100755 index 0000000..3bc046c --- /dev/null +++ b/.scripts/toggle-keyboard-hypr @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +CACHE_FILE="$XDG_CACHE_HOME/laptop-keyboard-disabled" + +if [ -f "$CACHE_FILE" ] ;then + rm "$CACHE_FILE" + hyprctl keyword -r '$KEYBOARD_ENABLED' "true" +else + touch "$CACHE_FILE" + hyprctl keyword -r '$KEYBOARD_ENABLED' "false" +fi diff --git a/.scripts/touchpad-disable-hypr b/.scripts/toggle-touchpad-hypr index d6f634c..8f65419 100755 --- a/.scripts/touchpad-disable-hypr +++ b/.scripts/toggle-touchpad-hypr @@ -1,6 +1,6 @@ #!/usr/bin/env bash -CACHE_FILE="$XDG_CACHE_HOME/laptop-keyboard-disabled" +CACHE_FILE="$XDG_CACHE_HOME/laptop-touchpad-disabled" if [ -f "$CACHE_FILE" ] ;then rm "$CACHE_FILE" |