tAdded requitred tools to use the script - scripts - various script and utils
 (HTM) git clone git://z3bra.org/scripts
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) commit 586d296df3c8a5c571453c1adafe4893c594476c
 (DIR) parent ceade825326e0dcba2cd0111f2c824ca7d29b012
 (HTM) Author: z3bra <willy@mailoo.org>
       Date:   Fri, 23 May 2014 11:45:56 +0200
       
       Added requitred tools to use the script
       
       Diffstat:
         M mkbar                               |      14 ++++++++++++--
       
       1 file changed, 12 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/mkbar b/mkbar
       t@@ -2,6 +2,16 @@
        #
        # z3bra - (c) wtfpl 2014
        # Fetch infos on your computer, and print them to stdout every second.
       +#
       +# require :
       +#           amixer      - volume()
       +#           bc          - cpuload() memused()
       +#           curl        - netip()
       +#           fcount      - mails()
       +#           iwconfig    - netint() (to spot wifi interface)
       +#           mpc         - nowplaying()
       +#           xprop       - groups() gstate()
       +#           xwininfo    - gstate()
        
        # configuration variables
        refresh_rate=0.75               # how often will the bar update
       t@@ -115,7 +125,7 @@ groups() {
        }
        
        # print current group and shown groups
       -wgroup() {
       +gstate() {
            cur=`xprop -root _NET_CURRENT_DESKTOP | awk '{print $3}'`
            tot=`xprop -root _NET_NUMBER_OF_DESKTOPS | awk '{print $3}'`
        
       t@@ -179,7 +189,7 @@ buf="$buf $(netstate) "
        
        buf="${buf}%{F#ffcef318} %{F-} $(nettrafic down) "
        buf="${buf}%{F#ffd43f10} %{F-} $(nettrafic up) "
       -buf="${buf}%{c} $(wgroup)"
       +buf="${buf}%{c} $(gstate)"
        buf="${buf}%{r}"
        buf="${buf}%{F#ffede265} %{F-} $(mails) "