Re: FC3 mute/unmute sound from command line?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



fedora-list@xxxxxxxxxxxxxx wrote:
Is there a way to mute and unmute the master volume from the command line? I'd like to be able to do this via a cron job eventually.
I've been hunting around, but so far no luck finding a way to do it.


Thanks much.


This works for me:

#
#Set Master Volume Control to zero at 10:00 P.M.
17 22 * * * DCOPSERVER=`cat /home/rj/.DCOPserver_mavis.localdomain_:0 | grep local`;export DCOPSERVER;dcop kmix Mixer0 setMasterVolume 0
#Set Master Volume Control to 60% at 6:14 A.M.
14 6 * * * DCOPSERVER=`cat /home/rj/.DCOPserver_mavis.localdomain_:0 | grep local`;export DCOPSERVER;dcop kmix Mixer0 setMasterVolume 60
#
Note that everything between comments is really one line. If I had it to do again, I'd definitely make 2 scripts for sound-on and sound-off and call the scripts from cron.


Good luck!


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux