KMix Shortcuts for Multimedia Keyboard
You know how KDE (3.1 for me) has 'hotkey configuration dialogs' in most of it's applets to set different functions to be controlled by keyboard shortcuts, like opening an email program, or logging out. Well, there is one of these dialogs in KMix, the KDE mixer program (right click on the compact-state slider). The trouble is, whenever I log out, it forgets the shortcut keys I have assigned to it! Please help me, I can't figure it out.
|
Well, I figured a kludge in DCOP:
Lower volume: dcop kmix Mixer0 decreaseVolume 0 Raise volume: dcop kmix Mixer0 increaseVolume 0 Toggle mute: #!/bin/sh if [ -r ~/.kde/share/config/.kmix-muted ]; then dcop kmix Mixer0 setMute 0 0 rm ~/.kde/share/config/.kmix-muted else dcop kmix Mixer0 setMute 0 1 touch ~/.kde/share/config/.kmix-muted fi Also, this works for toggling mute, but is slower: #!/bin/sh if [ `dcop kmix Mixer0 mute 0` = "false" ]; then dcop kmix Mixer0 setMute 0 1; else dcop kmix Mixer0 setMute 0 0; fi Anyway, it's addable to .khotkeysrc, but no DCOP call can ever be as fast as a signal directly to an application, so I would still appreciate a solution. |
All times are GMT -5. The time now is 12:54 PM. |