add script to show new mails in i3status
This commit is contained in:
parent
c74bfe18c5
commit
c254ec552e
@ -195,6 +195,5 @@ bindsym $mod+r mode "resize"
|
||||
# Start i3bar to display a workspace bar (plus the system information i3status
|
||||
# finds out, if available)
|
||||
bar {
|
||||
status_command i3status
|
||||
# tray_output primary
|
||||
status_command ~/src/dotfiles/i3status_append.sh
|
||||
}
|
||||
|
@ -8,7 +8,6 @@
|
||||
# order += "disk /"
|
||||
# order += "run_watch DHCP"
|
||||
# order += "run_watch VPNC"
|
||||
order += "path_exists VPN"
|
||||
order += "wireless wlp3s0"
|
||||
order += "ethernet enp0s31f6"
|
||||
order += "battery 0"
|
||||
|
18
i3status_append.sh
Executable file
18
i3status_append.sh
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
# shell script to prepend i3status with more stuff
|
||||
|
||||
eml(){
|
||||
maildirs="$HOME/Mail/magazino/INBOX/new/"
|
||||
ml="$(find "$maildirs" -type f | wc -l)"
|
||||
if [ $ml > 0 ]; then
|
||||
echo "$ml"
|
||||
else
|
||||
echo "0"
|
||||
fi
|
||||
}
|
||||
|
||||
i3status | while :
|
||||
do
|
||||
read line
|
||||
echo "Mails $(eml) | $line" || exit 1
|
||||
done
|
Loading…
x
Reference in New Issue
Block a user