1
0
mirror of https://github.com/sahinakkaya/dotfiles.git synced 2025-05-04 23:42:06 +02:00
dotfiles/scripts/toggle-screenkey
2022-03-18 00:38:39 +03:00

12 lines
199 B
Bash
Executable File

#!/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