Add new 'mails' bar module
This commit is contained in:
parent
5dbaa126db
commit
47819d5580
9
.local/bin/scripts/dwmbar/mails
Executable file
9
.local/bin/scripts/dwmbar/mails
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Modified Luke Smith's script.
|
||||
|
||||
unread="$(find "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/*/[Ii][Nn][Bb][Oo][Xx]/new/* -type f | wc -l 2>/dev/null)"
|
||||
|
||||
icon="$(cat "/tmp/imapsyncicon_$USER" 2>/dev/null)"
|
||||
|
||||
[ "$unread" = "0" ] && [ "$icon" = "" ] || echo " $unread$icon"
|
Loading…
x
Reference in New Issue
Block a user