fix(scripts): update caffeine and toggle-touchpad to Lua config syntax

Replace hyprctl dispatch exec with direct daemon invocation in caffeine.sh,
and replace defunct \$LAPTOP_KB_ENABLED .conf variable with the actual
device key path in hyprland-toggle-touchpad.sh.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
main
The_miro 2026-05-19 16:29:53 +02:00
parent 7b9379b1c1
commit f880191764
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ if [ "$statecon" != "" ]; then
else
notify-send -t 1000 "caffeine mode off"
hyprctl dispatch exec hypridle
hypridle &
fi

View File

@ -5,13 +5,13 @@ export STATUS_FILE="$XDG_RUNTIME_DIR/keyboard.status"
enable_keyboard() {
printf "true" >"$STATUS_FILE"
notify-send -u normal "Enabling Touchpad"
hyprctl keyword '$LAPTOP_KB_ENABLED' "true" -r
hyprctl keyword 'device[synaptics-tm3053-009]:enabled' "true"
}
disable_keyboard() {
printf "false" >"$STATUS_FILE"
notify-send -u normal "Disabling Touchpad"
hyprctl keyword '$LAPTOP_KB_ENABLED' "false" -r
hyprctl keyword 'device[synaptics-tm3053-009]:enabled' "false"
}
if ! [ -f "$STATUS_FILE" ]; then