summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2016-01-18 11:05:01 +0000
committerUrbain Vaes <urbain@vaes.uk>2016-01-18 11:05:01 +0000
commit7ed44a7a79028079513a31793240ee63ad49830d (patch)
treee5d75df622d62ab67ddf7fa13cf8d3b999361a73
parentb7715a0b58024479bf66f1df8cd04ff54cb1229a (diff)
Add email in i3status
-rw-r--r--.i3/config2
-rw-r--r--.i3/i3status.conf6
-rwxr-xr-xbin/mystatus9
3 files changed, 13 insertions, 4 deletions
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