add notifications and emacs-status widget

This commit is contained in:
cho
2023-06-18 20:55:44 +07:00
parent 5523e74082
commit 264eec4c48
4 changed files with 31 additions and 6 deletions

View File

@ -0,0 +1,7 @@
pgrep emacs >/dev/null
if [ $? -eq 1 ]
then
echo 'X'
else
echo 'e+'
fi

View 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