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.

9 lines
252 B

  1. #!/bin/bash
  2. SINK=$(pactl list short | grep RUNNING | sed -e 's,^\([0-9][0-9]*\)[^0-9].*,\1,')
  3. pactl -- set-sink-volume ${SINK} -5%
  4. VOL=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -oP '\d+?(?=%)' | head -n 1)
  5. notify-send -t 1000 "Volume: ${VOL}%"