Skip to content

Commit

Permalink
[POLYBAR] Add script to check emacs daemon.
Browse files Browse the repository at this point in the history
  • Loading branch information
qqldd committed Jun 4, 2018
1 parent 277c282 commit 19af18c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions polybar/emacsd_check.sh
@@ -0,0 +1,14 @@
#!/bin/bash
emacsclient -e '(daemonp)' &> /dev/null
ret=$?

if [ "$ret" -eq 0 ];
then
echo "%{F#00AAFF}E"
echo ${BLOCK_BUTTON}
exit 0
else
echo "%{F#FF00AA}E"
echo ${BLOCK_BUTTON}
exit 1
fi

0 comments on commit 19af18c

Please sign in to comment.