left: only notify when toggling
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
4980de6c86
commit
dc5f21027e
1 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue