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