1
1
Fork 0

left: only notify when toggling

Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
Myned 2024-09-24 19:54:15 -05:00
parent 4980de6c86
commit dc5f21027e
Signed by: myned
GPG key ID: C7224454F7881A34

View file

@ -41,7 +41,10 @@ if (("$left")); then
fi fi
touch "${argc_file:-}" touch "${argc_file:-}"
if [[ ! "${argc_init:-}" ]]; then
notify-send "> left" "Left-pawed" --urgency low notify-send "> left" "Left-pawed" --urgency low
fi
else else
hyprctl keyword "device[${argc_device:-}]:left_handed" false hyprctl keyword "device[${argc_device:-}]:left_handed" false
@ -50,5 +53,8 @@ else
fi fi
rm --force "${argc_file:-}" rm --force "${argc_file:-}"
if [[ ! "${argc_init:-}" ]]; then
notify-send "> left" "Right-pawed" --urgency low notify-send "> left" "Right-pawed" --urgency low
fi fi
fi