toggle script & .local/bin support
This commit is contained in:
parent
38e7cddb84
commit
79f275dfcd
6 changed files with 70 additions and 22 deletions
9
bin/toggle
Executable file
9
bin/toggle
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue