LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 10-25-2003, 01:19 AM   #1
Zallus
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, 02:01 AM   #2
Zallus
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:
#!/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.
 
  


Reply


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 06:21 PM
KDE Keyboard Shortcuts with different Keyboard Layout hellblade Linux - Software 5 04-18-2006 01:40 AM
Multimedia keyboard tayyab Linux - Hardware 2 08-14-2005 04:54 PM
multimedia keyboard Menestrel Linux - Software 1 05-22-2004 07:17 AM
Assigning keyboard shortcuts to keyboard keys the who Linux - Hardware 3 02-20-2004 10:36 PM


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

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