toggle script & .local/bin support

This commit is contained in:
vibikim 2021-02-13 14:49:36 +02:00
parent 1eabb8d2d8
commit 4e2b136715
6 changed files with 70 additions and 22 deletions

9
bin/toggle Executable file
View file

@ -0,0 +1,9 @@
#!/bin/sh
if [ -z "`pgrep -x $1`" ]; then
$@ &
notify-send $1 "is now enabled"
else
notify-send $1 "is now disabled"
pkill $1
fi