Add pomodoro status to Waybar
This commit is contained in:
12
scripts/.local/share/scripts/org-clock-status
Executable file
12
scripts/.local/share/scripts/org-clock-status
Executable 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}"
|
||||
Reference in New Issue
Block a user