Skip to content

Instantly share code, notes, and snippets.

@badboy
Created June 17, 2009 15:48
Show Gist options
  • Save badboy/131303 to your computer and use it in GitHub Desktop.
Save badboy/131303 to your computer and use it in GitHub Desktop.
#!/bin/bash
#i3status | dzen2 -dock -fn terminus -ta r
DZEN="dzen2 -dock -fn terminus -ta r"
GAJIM="gajim-remote get_unread_msgs_number"
IP=$(ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}')
OUT_IP=$(getip -q)
DATE_ARG="+%d.%m.%Y %H:%M"
yes "Gajim unread: $($GAJIM) | $IP / $OUT_IP | $(awk '{print $1, $2, $3 }' /proc/loadavg) | $(date "$DATE_ARG")" | $DZEN
#E: 192.168.1.33^fg(#333333)^p(5;-2)^ro(2)^p()^fg()^p(5)0.16 0.16 0.15^fg(#333333)^p(5;-2)^ro(2)^p()^fg()^p(5)17.06.2009 17:31^p(6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment