Hey, that rocks!  Thanks for posting!

Mike

bascule wrote:

> further to posts under the recent thread concerning cut and paste i have been 
> doing some reading and i have discovered that the 'khotkeys' prog mentioned 
> by randy (iirc), is installed as part of kde (in kdebase i think), it is used 
> if one uses 'kmenuedit' to edit the menus as this has options to assign keys 
> to launch the applications, doing this then creates a 
> ~/.kde/share/config/khotkeysrc file, however this route means creating a menu 
> item, fortunately this url: http://www.linuxgazette.com/issue67/evans.html
> gives a nice example of how to manually edit this file to create a shortcut 
> for a command without having to create a menu item, i have used this route to 
> create shortcuts for altering the volume using the keyboard,
> i created two scripts called 'volumeup' and volumedown' as follows,
> volumeup:
> #!/bin/bash
> aumix -v +5 -S
> 
> volumedown:
> #!/bin/bash
> aumix -v -5 -S
> 
> made them execuatble of course and put them in my ~/scripts directory
> i then created ~/.kde/share/config/khotkeysrc file
>  as follows:
> [Main]
> Num_Sections=2
> Version=1
> 
> [Section1]
> MenuEntry=false
> Name=volumeup
> Run=~/scripts/volumeup
> Shortcut=Shift+Insert
> 
> [Section2]
> MenuEntry=false
> Name=volumeudown
> Run=~/scripts/volumedown
> Shortcut=Shift+Delete
> 
> then i used the info from the above url and ran:
> 'dcop khotkeys khotkeys reread_configuration' at a prompt to get khotkeys to 
> reread its config file
> 
> voila!
> the key combos i used aren't my preferred, using kmenuedit to see what the ui 
> would accept i noticed that the numpad keys seem to be ignored so i'm hoping 
> that what i've chosen - shift-insert and shift-delete don't conflict with 
> anything, but they are easily changed!
> 
> i hope this might be of help to someone
> i forget who pointed me to the aumix command line options but thankyou!
> 
> bascule



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to