Advertisement
Guest User

Untitled

a guest
Jan 14th, 2020
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement