nixos-config/modules/workspace/i3blocks/scripts/emacs.nix

5 lines
163 B
Nix

{...}: ''
[[ $BLOCK_BUTTON -eq 2 ]] && emacsclient --eval "(org-clock-out)" > /dev/null
emacsclient --eval "org-mode-line-string" | head -1 | cut -d\" -f 2
''