Dmix


Forum: Apps
Topic: Dmix
started by: humpty

Posted by humpty on Mar. 05 2006,18:13
Any way to auto-save volume settings in Dmix?
(keep having to set them after boot).

Posted by cbagger01 on Mar. 06 2006,02:48
That's a good idea.

Maybe it can be added to a future version.

Posted by humpty on Mar. 07 2006,10:03
(after much searching)
This will generate the restore file which i can run after.

vol_save.sh
-------------
#!/bin/bash

# save volume settings

umix -q | awk '{print "umix "$1 " " $2 $3}' | grep [0123456789] > vol_restore.sh

sed '1i#!/bin/bash' vol_restore.sh > tmpfile
mv tmpfile vol_restore.sh

chmod 775 vol_restore.sh
------------

Posted by e_bachmann on Mar. 25 2006,20:25
Why not use:

umix -s -f umix.sav

umix -l -f umix.sav

:;):

Posted by humpty on Mar. 30 2006,14:13
great! :laugh:
Posted by dmizzel on April 08 2006,05:43
e_bachmann,

Can you elaborate please? Where do I put that?

Posted by humpty on April 15 2006,07:00
Quote (dmizzel @ April 08 2006,01:43)
e_bachmann,

Can you elaborate please? Where do I put that?

- add this to /opt/powerdown.sh (before the filetool line)
Code Sample

# save volume settings
/usr/local/bin/umix -s -f /home/dsl/.umix.sav

- and this to /home/dsl/.xinitrc (after docked.lua line)
Code Sample

# restore volume settings
sleep 1
/usr/local/bin/umix -l -f /home/dsl/.umix.sav &


Edit: Apparently docked.lua is the culprit. it's read-only so this is
the only ugly fix I know, and only works for fluxbox.

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.