diff --git a/dwmstatus.sh b/dwmstatus.sh index fb1e44a..dd2ebd2 100755 --- a/dwmstatus.sh +++ b/dwmstatus.sh @@ -23,7 +23,6 @@ color_grey="\x09" #grey glyph_cpu="\u01B0" glyph_mem="\u01B1" glyph_dl="\u01A5" -glyph_ul="\u01A4" glyph_pow="\u01B2" glyph_clk="\u01Af" glyph_bln="\u01AA" @@ -32,6 +31,7 @@ glyph_vol="\u01AC" glyph_mute="\u01B4" glyph_mail="\u01AD" glyph_wifi="\u01AE" +glyph_plug="\u01A4" # Song info msc(){ @@ -53,12 +53,23 @@ dte(){ #Power and Battery bat(){ - charge=`acpi -b | awk '{print +$4}'` - if [ $charge -lt "25" ] + on1="$( /dev/null && + echo -ne "${glyph_wifi}" || echo -ne "${color_important}${glyph_wifi}${color_normal}" +} - # Pipe to statusbar - xsetroot -name "$(msc) $(load) $(mem) $(rx_rate)$(tx_rate) $(bat) $(vol) $(dte) " - - #reset rates - rx_old=$rx_now - tx_old=$tx_now - sleep 2 -done +# Pipe to statusbar +xsetroot -name "$(msc) $(load) $(mem) $(int) $(bat) $(vol) $(dte) "