Advertisement
metalx1000

Get Volume Level of Pulse audio

Sep 1st, 2017
700
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.20 KB | None | 0 0
  1. #/bin/sh
  2.  
  3. #get default sink name
  4. name="$(pacmd stat | awk -F": " '/^Default sink name: /{print $2}')"
  5.  
  6. #get volume level
  7. pactl list sinks|grep -A 10 "$name"|grep "Volume: front"|awk '{print $5}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement