Guest User

Untitled

a guest
Nov 17th, 2020
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. get_volume() {
  4. vol="$(pamixer --get-volume-human)"
  5. if [[ "$vol" == "muted" ]]; then
  6. printf "🔇 %s" "$vol"
  7. else
  8. printf "🔊 %s" "$vol"
  9. fi
  10. }
  11.  
  12. while true
  13. do
  14. xsetroot -name "$(get_volume)";
  15. sleep 1m;
  16. done
  17.  
  18.  
  19.  
Advertisement
Add Comment
Please, Sign In to add comment