Created
January 11, 2020 20:38
-
-
Save Gydo194/cbd21afd533791ce105038a18fb98b31 to your computer and use it in GitHub Desktop.
Super Super Simple DWM Status script (BASH)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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