diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2018-11-11 21:27:04 -0500 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2018-11-11 21:27:04 -0500 |
| commit | debbe40d2c60d4eb8c407d16075838a84edf91d6 (patch) | |
| tree | 33f00ed63869a7c3d45a31672a7e5c1623b5ce3d /.scripts/statusbar/i3mail | |
| parent | 9fd0e6575439747e179be8218b0f372fedf69dc4 (diff) | |
| download | eibhear-debbe40d2c60d4eb8c407d16075838a84edf91d6.tar.gz eibhear-debbe40d2c60d4eb8c407d16075838a84edf91d6.tar.zst eibhear-debbe40d2c60d4eb8c407d16075838a84edf91d6.zip | |
right click on modules shows module info
Diffstat (limited to '.scripts/statusbar/i3mail')
| -rwxr-xr-x | .scripts/statusbar/i3mail | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/.scripts/statusbar/i3mail b/.scripts/statusbar/i3mail index e80df86..7729c9f 100755 --- a/.scripts/statusbar/i3mail +++ b/.scripts/statusbar/i3mail @@ -5,7 +5,12 @@ # When clicked, brings up `neomutt`. case $BLOCK_BUTTON in - 1) $TERMINAL -e neomutt ;; + 1) "$TERMINAL" -e neomutt ;; + 3) pgrep -x dunst >/dev/null && notify-send "<b>📬 Mail module:</b> +- Shows unread mail +- Left click opens neomutt" ;; esac -echo "$(du -a ~/.mail/*/INBOX/new/* | sed -n '$=')" $(cat ~/.config/mutt/.dl) + + +echo "$(du -a ~/.mail/*/INBOX/new/* 2>/dev/null | sed -n '$=')$(cat ~/.config/mutt/.dl 2>/dev/null)" |
