From 7ed44a7a79028079513a31793240ee63ad49830d Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Mon, 18 Jan 2016 11:05:01 +0000 Subject: Add email in i3status --- .i3/config | 2 +- .i3/i3status.conf | 6 +++--- bin/mystatus | 9 +++++++++ 3 files changed, 13 insertions(+), 4 deletions(-) create mode 100755 bin/mystatus diff --git a/.i3/config b/.i3/config index 53d1fe0..9403a9e 100644 --- a/.i3/config +++ b/.i3/config @@ -148,7 +148,7 @@ 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 + status_command $HOME/bin/mystatus } # Workspaces diff --git a/.i3/i3status.conf b/.i3/i3status.conf index 7052e23..3134fd1 100644 --- a/.i3/i3status.conf +++ b/.i3/i3status.conf @@ -13,12 +13,12 @@ general { order += "ipv6" order += "disk /" -order += "run_watch DHCP" -order += "run_watch VPN" +# order += "run_watch DHCP" +# order += "run_watch VPN" order += "wireless _first_" order += "ethernet _first_" order += "battery 0" -order += "load" +# order += "load" order += "tztime local" wireless _first_ { diff --git a/bin/mystatus b/bin/mystatus new file mode 100755 index 0000000..b26e9b6 --- /dev/null +++ b/bin/mystatus @@ -0,0 +1,9 @@ +#!/bin/sh +# shell script to prepend i3status with more stuff + +i3status | while : +do + read line + nmails=$(find $HOME/.mail -path '*/new/*' -type f | wc -l) + echo "Email: ${nmails} | $line" || exit 1 +done -- cgit v1.2.3