Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
794 B

4 years ago
  1. #! /bin/sh
  2. #mute=$(amixer get Master | awk -F'[][]' 'END{ print $6 }' )
  3. #vol=$(amixer get Master | awk -F'[][]' 'END{ print $2 }' )
  4. mute=$(pamixer --get-mute)
  5. vol=$(pamixer --get-volume)
  6. iconmute=󰖁
  7. ramp1=󰕿
  8. ramp2=󰖀
  9. ramp3=󰕾
  10. mbg=^b#cc241d^
  11. tfg=^c#292541^
  12. ibg=^b#875b82^
  13. tbg=^b#cdabb8^
  14. reset=^d^
  15. if [[ $mute == "true" ]]; then
  16. echo "$mbg$tfg $iconmute $tbg$tfg $vol% $reset"
  17. elif [[ "$vol" == "100" ]]; then
  18. echo "$ibg$tfg $ramp3 $tbg$tfg $vol% $reset"
  19. elif [[ "$vol" < "33" ]]; then
  20. echo "$ibg$tfg $ramp1 $tbg$tfg $vol% $reset"
  21. elif [[ "$vol" < "66" ]]; then
  22. echo "$ibg$tfg $ramp2 $tbg$tfg $vol% $reset"
  23. elif [[ "$vol" = "66" ]]; then
  24. echo "$ibg$tfg $ramp2 $tbg$tfg $vol% $reset"
  25. elif [[ "$vol" > "66" ]]; then
  26. echo "$ibg$tfg $ramp3 $tbg$tfg $vol% $reset"
  27. fi