Add pomodoro status to Waybar

This commit is contained in:
2022-04-13 11:00:19 +02:00
parent 5688f06062
commit 0b2c759a89
3 changed files with 20 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
#!/bin/sh
emacs_pid=$(pidof emacs)
if [ -z "$emacs_pid" ]; then
echo ""
exit 0
fi
CLOCK_STATUS=$(emacsclient --eval "(bergheim/org-clock-status)" 2>/dev/null)
echo "${CLOCK_STATUS:1:-1}"