dwmbar (500B)
1 #!/bin/sh 2 3 # Refreshes the dwm bar using the scripts in: 4 # $SCRIPTS/dwm/ 5 6 # When given the echo option, echo to stdout instead 7 # of refreshing (useful for debugging) 8 9 battery=$(dwmb-bat) 10 datetime=$(dwmb-date) 11 # dropbox=$(dropbox-status) 12 kblayout=$(dwmb-layout) 13 # mailbox=$(mailbox) 14 news=$(dwmb-news) 15 vpnstatus=$(dwmb-vpn) 16 # wifi=$(wifi) 17 dotfiles=$(dwmb-dotfiles) 18 19 bar="$dotfiles|$news|$datetime|$kblayout|$vpnstatus|$battery " 20 21 case "$1" in 22 echo) echo "$bar" ;; 23 *) xsetroot -name "$bar" ;; 24 esac 25 26