Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
fn dwm-date { date "+DATE: %d/%m/%y TIME: %H:%M:%S" }
fn dwm-battery { acpi -b | cut -d ',' -f 2 | cut -d ' ' -f 2 }
modules = [
$dwm-date~
$dwm-battery~
]
while $true {
for m $modules { $m } |
xsetroot -name (joins ' ')
sleep 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.