Skip to content

Instantly share code, notes, and snippets.

@xiaq
Created January 14, 2020 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xiaq/91b5e7650ce97db744fa8b3575d5f827 to your computer and use it in GitHub Desktop.
Save xiaq/91b5e7650ce97db744fa8b3575d5f827 to your computer and use it in GitHub Desktop.
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