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.

10 lines
359 B

  1. #!/bin/bash
  2. SINK=$( pactl list short sinks | grep RUNNING | sed -e 's,^\([0-9][0-9]*\)[^0-9].*,\1,' | head -n 1 )
  3. NOW=$( pactl list sinks | grep '^[[:space:]]Volume:' | head -n $(( $SINK + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,' )
  4. echo "^c#a3be8c^墳 ^d^ $NOW%"
  5. case $BLOCK_BUTTON in
  6. 1) setsid -f "$TERMINAL" -e ncpamixer ;;
  7. esac