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.

17 lines
331 B

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