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
|
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
|
||||||
|
|
Loading…
Reference in a new issue