A nifty little trick for Openbox Arch

Since Arch requires you to set up alsa as a separate daemon, I generally don’t. Really, a daemon that just writes the volume levels on startup and shutdown? Mmm … nah.

Instead, I run without alsad — the downside being that my volume levels are muted and set to zero each time I boot. In a way that’s a good thing, since I don’t accidentally start up Audacious at a terribly loud setting at 1 a.m., infuriating my fellow apartment-dwellers.

On the other hand, opening alsamixer all the time to set the volume is a pain. Solution: Openbox’s right-click menu and a two-line script.

Put this into a small text file, and call it anything — volumes.sh is what I use.

#!/bin/bash
amixer sset Master 80% unmute
amixer sset PCM 30% unmute

Now set your Openbox menu to run the script, either with an sh prefix or by making the file executable. Reconfigure Openbox, and now you can spike your volume levels to a preset level after each boot, from the right-click menu. ;)

About these ads

Welcome!



Visit the Wiki!

Some recent desktops


May 6, 2011
Musca 0.9.24 on Crux Linux
150Mhz Pentium 96Mb 8Gb CF
 


May 14, 2011
IceWM 1.2.37 and Arch Linux
L2300 core duo 3Gb 320Gb

Some recent games


Apr. 21, 2011
Oolite on Xubuntu 11.04
L2300 core duo 3Gb 320Gb

Enter your email address to subscribe to this blog and receive notifications of new posts.

Join 179 other followers

License

This work is licensed under the GNU Free Documentation License. Please see the About page for details.

Blog Stats

  • 3,745,558 hits

Archives


Follow

Get every new post delivered to your Inbox.

Join 179 other followers

%d bloggers like this: