dotfiles/scripts/toggle-screenkey

12 lines
199 B
Plaintext
Raw Normal View History

2023-12-25 11:21:57 +01:00
#!/bin/bash
num=$(ps aux | grep /usr/bin/screenkey | wc -l)
if [[ $num -eq 1 ]]; then
screenkey &
notify-send "Screenkey enabled."
else
pkill screenkey
notify-send "Screenkey disabled."
fi