Add restart script

This commit is contained in:
hok7z 2022-12-25 13:37:30 +02:00
parent 4c1e8f629d
commit b38fd56740
1 changed files with 26 additions and 0 deletions

26
bin/restart Executable file
View File

@ -0,0 +1,26 @@
#!/bin/bash
if [ -z "$1" ]
then
echo "./restart --picom/--polybar/--sxhkd";
exit 1;
fi
case $1 in
"--picom")
pkill -USR1 -x picom
dunstify "picom restarted" -t 3500
;;
"--polybar")
pkill -USR1 -x polybar
dunstify "polybar restarted" -t 3500
;;
"--sxhkd")
pkill -USR1 -x sxhkd
dunstify "sxhkd restarted" -t 3500
;;
esac