Skip to content

Instantly share code, notes, and snippets.

@Gydo194
Created January 11, 2020 20:38
Show Gist options
  • Save Gydo194/cbd21afd533791ce105038a18fb98b31 to your computer and use it in GitHub Desktop.
Save Gydo194/cbd21afd533791ce105038a18fb98b31 to your computer and use it in GitHub Desktop.
Super Super Simple DWM Status script (BASH)
#!/bin/bash
DELAY=10
function update()
{
DATE=`date "+%H:%M"`
BAT=`acpi -b | awk '{print $4}'`
VOL=`pactl list sinks | fgrep 'Base Volume:' | awk '{print $5}'`
OUT="🔊 $VOL$BAT$DATE"
xsetroot -name "$OUT"
}
while true; do update; sleep $DELAY; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment