SHARE
TWEET

Untitled

a guest Jan 14th, 2020 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. modules = [ ]
  2.  
  3. fn dwm_date {
  4.   modules = [ $@modules "[ "(date "+DATE: %d/%m/%y TIME: %H:%M:%S")" ]" ]
  5. }
  6.  
  7. fn dwm_battery {
  8.   modules = [ $@modules "[ "(acpi -b | cut -d ',' -f 2 | cut -d ' ' -f 2)" ]" ]
  9. }
  10.  
  11. fn populate {
  12.   modules = [ ]
  13.   dwm_date
  14.   dwm_battery
  15. }
  16.  
  17. while $true {
  18.   populate
  19.   xsetroot -name (joins ' ' $modules)
  20.   sleep 1
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top