From dc5f21027e17fadc4791ff8628287f3db5553c49 Mon Sep 17 00:00:00 2001 From: Myned Date: Tue, 24 Sep 2024 19:54:15 -0500 Subject: [PATCH] left: only notify when toggling Signed-off-by: Myned --- options/custom/scripts/left.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/options/custom/scripts/left.sh b/options/custom/scripts/left.sh index 6fe098a..d8b9dff 100644 --- a/options/custom/scripts/left.sh +++ b/options/custom/scripts/left.sh @@ -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