dotfiles/system/.notification_state

15 lines
287 B
Plaintext
Raw Permalink Normal View History

#!/bin/sh
pgrep dunst >/dev/null
if [ $? -eq 0 ]; then
echo Notifications On
if [ ! -z $1 ]; then
ps -ef|grep -i dunst|grep -v grep|awk '{print $2}'|xargs kill -9
fi
else
echo Quiet Mode
if [ ! -z $1 ]; then
dunst -config ~/.config/dunst &
fi
fi