dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

dwmblock-emacs-org-clock (422B)


      1 #!/bin/sh
      2 # dwmblocks script for battery information
      3 case "$BUTTON" in
      4   1) emacsclient -c -a '' -e '(when (org-clock-is-active) (org-clock-goto))';;
      5   6) "$TERMINAL" -e "$EDITOR" "$0" ;;
      6 esac
      7 
      8 if pgrep -xl emacs >/dev/null 2>&1 && command -v emacsclient >/dev/null 2>&1; then
      9   printf " 🕛 %.40s" "$(emacsclient -e '(if (org-clock-is-active) (substring-no-properties (org-clock-get-clock-string)) "")' | tr -d '"')"
     10 fi