I've been using the pavol contrib for the last couple years and I absolutely love it and recommend anyone using pulseaudio check it out. I love how it works well in two different keybinding scenarios. One is if you bind a single key to say volume up or volume down, like a hardware volume key. The other is when you binding it say "C-t v" you can repeat commands without having to type the prefix again, so you can do "C-t v kkkkkkjjjjjjmm" to turn the volume up several steps, turn it down several steps, then mute and unmute.
https://gitorious.org/pavol/pavol/ I think I did need "flat-volumes = no" in /etc/pulse/daemon.conf for it to work, so if you have a problem check that. Scott On Tue, Nov 18, 2014 at 10:24 AM, David Bjergaard <dbjerga...@gmail.com> wrote: > "Diogo F. S. Ramos" <d...@riseup.net> writes: > >>> Actually this would be very useful to me, I currently use a very hackish >>> way of controlling pulse audio's volume with these in my stumpwmrc: >>> (defcommand vol-up () () >>> "Increase the volume from the shell" >>> (run-shell-command >>> "pacmd set-sink-volume 0 $(printf '0x%x' $(( $(pacmd dump|grep >>> set-sink-volume|cut -f3 -d' ') + 0xf00)) ) &> /dev/null")) >>> (defcommand vol-down () () >>> "Decrease the volume from the shell" >>> (run-shell-command >>> "pacmd set-sink-volume 0 $(printf '0x%x' $(( $(pacmd dump|grep >>> set-sink-volume|cut -f3 -d' ') - 0xf00)) ) &> /dev/null")) >> >> Nice. >> >>> A more lispy solution would be really awesome! >> >> It is "more lispy" just because it uses more lisp expressions. In the >> end, it calls `pacmd' and parses its output, just like yours. > This is still an improvement over my kludge. I can't even really > mentally parse what my code does anymore... I just know that when I > press the vol-up key, the volume goes up :). > > Dave > > _______________________________________________ > Stumpwm-devel mailing list > Stumpwm-devel@nongnu.org > https://lists.nongnu.org/mailman/listinfo/stumpwm-devel _______________________________________________ Stumpwm-devel mailing list Stumpwm-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/stumpwm-devel