Dotfiles for different machines on different branches.
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.

15 lines
269 B

  1. #!/bin/sh
  2. [ "$(pulsemixer --get-mute)" = "1" ] && printf "🔇\\n" && exit
  3. vol=$(pulsemixer --get-volume | awk '{print $1}')
  4. if [ "$vol" -gt "70" ]; then
  5. icon="🔊"
  6. elif [ "$vol" -lt "30" ]; then
  7. icon="🔈"
  8. else
  9. icon="🔉"
  10. fi
  11. printf "%s %s\\n" "$vol" "$icon"