FC3 mute/unmute sound from command line?
Robert
kerplop at sbcglobal.net
Tue Jan 11 15:15:56 UTC 2005
fedora-list at jamesplace.net 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!
More information about the fedora-list
mailing list