Re: Tips for using "extra" keyboard keys. Mini-HOWTO

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

 



On Thu, 18 Dec 2003 19:06:38 -0700, Rob Park wrote:

> Keith G. Robertson-Turner wrote:
>> On Thu, 18 Dec 2003 13:27:13 -0700, Rob Park wrote:
>>>NEW=$(aumix -vq|perl -pe 's/^\D+(\d+).+/\1/;')
>> 
>> Ah, the wonders of Perl ;-)
> 
> Yeah, I couldn't figure out why your mute script was so long :)

Yeah I got kinda caught up in controlling xmms, and overlooked the fact
that (as far as volume controls are concerned) aumix is the same deal.
Then as an added complication, I also made an assumption that xmms needed
a third party tool to hook into its controls (hence xmms-shell).

Also I've got some extra error checking. For example your script will fail
where a) it's first-time use and b) the volume is already zero (maybe you
manually turned down the volume, but forgot and thought it was set to
mute). In which case ~/.mute-toggle doesn't exist, and you end up passing
<null> to aumix.

So nnnyyyerrr yaboosux :)




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

  Powered by Linux