dotfiles/bin/restart

12 lines
154 B
Plaintext
Raw Normal View History

2022-12-25 06:37:30 -05:00
#!/bin/bash
if [ -z "$1" ]
then
2023-08-14 19:28:08 -04:00
echo "./restart [service]";
2022-12-25 06:37:30 -05:00
exit 1;
fi
2023-08-14 19:28:08 -04:00
pkill -USR1 -x $1
dunstify "$1 restarted" -t 3500
$1 & > /dev/null 2>&1