add notifications and emacs-status widget
This commit is contained in:
7
home/default/.config/waybar/scripts/emacs-status.sh
Executable file
7
home/default/.config/waybar/scripts/emacs-status.sh
Executable file
@ -0,0 +1,7 @@
|
||||
pgrep emacs >/dev/null
|
||||
if [ $? -eq 1 ]
|
||||
then
|
||||
echo 'X'
|
||||
else
|
||||
echo 'e+'
|
||||
fi
|
6
home/default/.config/waybar/scripts/notifications.sh
Executable file
6
home/default/.config/waybar/scripts/notifications.sh
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
count="$(swaync-client -c)"
|
||||
none="-"
|
||||
if [ "$count" == "0" ]; then echo "$none" ; fi
|
||||
if [ "$count" != "0" ]; then echo "$count" ; fi
|
Reference in New Issue
Block a user