LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


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.
Old

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:
Code:
 #!/bin/bash
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#-} 
amixer
...
Member
Posted in Uncategorized
Views 505 Comments 0 the dsc is offline

  



All times are GMT -5. The time now is 09:08 AM.

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