From f88019176407fa2720b71c66e14771523c0abf68 Mon Sep 17 00:00:00 2001 From: The_miro Date: Tue, 19 May 2026 16:29:53 +0200 Subject: [PATCH] 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 --- desktopenvs/hyprlua/scripts/caffeine.sh | 2 +- desktopenvs/hyprlua/scripts/hyprland-toggle-touchpad.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/desktopenvs/hyprlua/scripts/caffeine.sh b/desktopenvs/hyprlua/scripts/caffeine.sh index 0fb1eb7..b6d40e6 100755 --- a/desktopenvs/hyprlua/scripts/caffeine.sh +++ b/desktopenvs/hyprlua/scripts/caffeine.sh @@ -10,7 +10,7 @@ if [ "$statecon" != "" ]; then else notify-send -t 1000 "caffeine mode off" - hyprctl dispatch exec hypridle + hypridle & fi diff --git a/desktopenvs/hyprlua/scripts/hyprland-toggle-touchpad.sh b/desktopenvs/hyprlua/scripts/hyprland-toggle-touchpad.sh index cafa8e4..31e64d3 100755 --- a/desktopenvs/hyprlua/scripts/hyprland-toggle-touchpad.sh +++ b/desktopenvs/hyprlua/scripts/hyprland-toggle-touchpad.sh @@ -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