Browse Source

Merge pull request #10 from FriendlyNeighborhoodShane/master

Modular string generation
main
Joe Standring 4 years ago
committed by GitHub
parent
commit
79056bc4e9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 26 additions and 1 deletions
  1. +26
    -1
      dwm_bar.sh

+ 26
- 1
dwm_bar.sh View File

@ -46,6 +46,31 @@ export SEP2="]"
# Update dwm status bar every second # Update dwm status bar every second
while true while true
do do
xsetroot -name "$(dwm_connman)$(dwm_countdown)$(dwm_alarm.sh)$(dwm_transmission)$(dwm_cmus)$(dwm_mpc)$(dwm_spotify)$(dwm_resources)$(dwm_battery)$(dwm_mail)$(dwm_backlight)$(dwm_alsa)$(dwm_pulse)$(dwm_weather)$(dwm_vpn)$(dwm_networkmanager)$(dwm_keyboard)$(dwm_ccurse)$(dwm_date)$(dwm_loadavg)"
# Append results of each func one by one to a string
dispstr=""
dispstr="$dispstr$(dwm_connman)"
dispstr="$dispstr$(dwm_countdown)"
dispstr="$dispstr$(dwm_alarm)"
dispstr="$dispstr$(dwm_transmission)"
dispstr="$dispstr$(dwm_cmus)"
dispstr="$dispstr$(dwm_mpc)"
dispstr="$dispstr$(dwm_spotify)"
dispstr="$dispstr$(dwm_resources)"
dispstr="$dispstr$(dwm_battery)"
dispstr="$dispstr$(dwm_mail)"
dispstr="$dispstr$(dwm_backlight)"
dispstr="$dispstr$(dwm_alsa)"
dispstr="$dispstr$(dwm_pulse)"
dispstr="$dispstr$(dwm_weather)"
dispstr="$dispstr$(dwm_vpn)"
dispstr="$dispstr$(dwm_networkmanager)"
dispstr="$dispstr$(dwm_keyboard)"
dispstr="$dispstr$(dwm_ccurse)"
dispstr="$dispstr$(dwm_date)"
dispstr="$dispstr$(dwm_loadavg)"
xsetroot -name "$dispstr"
sleep 1 sleep 1
done done

Loading…
Cancel
Save