Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-25-2003, 12:19 AM   #1
LQ Newbie
Registered: Sep 2003
Location: Zaroke
Distribution: Slackware
Posts: 8

Rep: Reputation: 0
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.
Old 10-25-2003, 01:01 AM   #2
LQ Newbie
Registered: Sep 2003
Location: Zaroke
Distribution: Slackware
Posts: 8

Original Poster
Rep: Reputation: 0
Well, I figured a kludge in DCOP:

Lower volume:
dcop kmix Mixer0 decreaseVolume 0

Raise volume:
dcop kmix Mixer0 increaseVolume 0

Toggle mute:
if [ -r ~/.kde/share/config/.kmix-muted ]; then
dcop kmix Mixer0 setMute 0 0
rm ~/.kde/share/config/.kmix-muted
dcop kmix Mixer0 setMute 0 1
touch ~/.kde/share/config/.kmix-muted

Also, this works for toggling mute, but is slower:
if [ `dcop kmix Mixer0 mute 0` = "false" ]; then
dcop kmix Mixer0 setMute 0 1;
dcop kmix Mixer0 setMute 0 0;

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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
No keyboard on FC3 or Ubuntu--MS Multimedia Keyboard (PS/2) TravisOSF Linux - Hardware 4 03-04-2008 05:21 PM
KDE Keyboard Shortcuts with different Keyboard Layout hellblade Linux - Software 5 04-18-2006 12:40 AM
Multimedia keyboard tayyab Linux - Hardware 2 08-14-2005 03:54 PM
multimedia keyboard Menestrel Linux - Software 1 05-22-2004 06:17 AM
Assigning keyboard shortcuts to keyboard keys the who Linux - Hardware 3 02-20-2004 09:36 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:05 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration