Review your favorite Linux distribution.
Go Back > Blogs
User Name


Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.

Bash script to create a unified pactl-rexima-amixer command

Posted 06-23-2019 at 11:32 PM by the dsc (linux-related notes)
Updated 06-23-2019 at 11:39 PM by the dsc

For reasons I don't fully comprehend, every now and then, one or more of these tools won't work, but hopefully at least one will. In order to preserve openbox' rc.xml key bindings, I came up with this script that "unifies" simple commands to lower or increase the volume:
rexima vol ${1} && exit 0
pactl set-sink-volume 0 ${1}% && exit 0 
pactl set-sink-volume 1 ${1}% && exit 0
val=${1#+} ; val=${val#-} 
Posted in Uncategorized
Views 788 Comments 0 the dsc is offline


All times are GMT -5. The time now is 08:05 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration