Stuff and things..

Wednesday, August 23, 2017

Getting pulseaudio volume for default sink, once and for all

This was done with pulseaudio 8.0

So, here it is:

echo $(( ($(pacmd list-sinks | sed -n -e "/$(pacmd stat | grep "Default sink name" | cut -d ' ' -f4)/,\$p" | grep -m1 volume | cut -d '/' -f2,4 | tr -d '% ' | tr '/' '+')) / 2 ))

Wow.. that's a mouthful. Let's break it down...

Read more »
Posted by TheFekete at 3:34 PM No comments :
Newer Posts Older Posts Home
Subscribe to: Posts ( Atom )

Labels

bash linux development ssh git gnome-shell ubuntu AVR vim virtualbox xmega apt chrome cups dfu find gzip html make markdown pv rsync sed tar

Blog Archive

  • ►  2021 ( 1 )
    • ►  April ( 1 )
  • ►  2020 ( 2 )
    • ►  June ( 1 )
    • ►  February ( 1 )
  • ▼  2017 ( 2 )
    • ▼  August ( 1 )
      • Getting pulseaudio volume for default sink, once a...
    • ►  May ( 1 )
  • ►  2016 ( 11 )
    • ►  June ( 1 )
    • ►  May ( 2 )
    • ►  April ( 1 )
    • ►  March ( 5 )
    • ►  January ( 2 )
  • ►  2015 ( 2 )
    • ►  March ( 2 )
  • ►  2014 ( 5 )
    • ►  November ( 1 )
    • ►  October ( 4 )
  • ►  2008 ( 2 )
    • ►  September ( 1 )
    • ►  July ( 1 )
Powered by Blogger.