[StumpWM, Bin] Rework modeline appearance, make it Powerlined!

Also create script `mu-unread' in order to get the amount of unread
emails I have in my maildir.
This commit is contained in:
2021-10-14 20:05:13 +02:00
parent 52705bf2a0
commit 501c8040eb
2 changed files with 112 additions and 36 deletions

View File

@@ -255,6 +255,18 @@ sudo chmod a+rw /opt/flutter/version
sudo chown $USER:(id -g $USER) /opt/flutter/bin/cache
#+END_SRC
** mu-unread
:PROPERTIES:
:HEADER-ARGS: :shebang "#!/usr/bin/env sh" :tangle ~/.local/bin/mu-unread
:CUSTOM_ID: cli-utilities-mu-unread-f8t7tf20o8j0
:END:
~mu-unread~ is a very simple utility that simply returns the amount of
unread emails I have through the use of ~mu~.
#+begin_src sh
UNREAD=$(mu find "flag:unread AND (maildir:/Inbox OR maildir:/Junk)" | wc -l)
printf "Mail: %s" $UNREAD
#+end_src
** Pinfo :noexport:
:PROPERTIES:
:HEADER-ARGS: :shebang "#!/usr/bin/env fish" :tangle no