mirror of
https://github.com/sahinakkaya/dotfiles.git
synced 2025-07-04 11:19:06 +03:00
Add new scripts
This commit is contained in:
11
scripts/toggle-screenkey
Executable file
11
scripts/toggle-screenkey
Executable file
@ -0,0 +1,11 @@
|
||||
#!/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
|
Reference in New Issue
Block a user