LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 02-10-2012, 02:02 PM   #1
javascriptninja
Member
 
Registered: Jan 2012
Posts: 41

Rep: Reputation: Disabled
Question How to make multimedia keys useful in KDE


In Gnome when I pressed the "play" button on my keyboard it would play/pause the song in a media player.

In KDE when I press the play button nothing happens.

I want to use this key to send a play/pause signal message to the program "mpc" so that when I press the key it does the same thing as typing "mpc toggle" in a terminal.

How can this be done?

Last edited by javascriptninja; 02-10-2012 at 03:00 PM.
 
Old 02-10-2012, 10:40 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Here is a howto to help you figure it all out: http://cweiske.de/howto/xmodmap/allinone.html

I recommend you read through it to be certain you understand it before attempting any changes to your system.

Last edited by bigrigdriver; 02-10-2012 at 10:44 PM.
 
Old 02-11-2012, 04:21 PM   #3
javascriptninja
Member
 
Registered: Jan 2012
Posts: 41

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bigrigdriver View Post
Here is a howto to help you figure it all out: http://cweiske.de/howto/xmodmap/allinone.html

I recommend you read through it to be certain you understand it before attempting any changes to your system.
I was able to do it by setting the keys in System Settings / Common Appearance and Behaviour / Shortcuts and Gestures / Custom Shortcuts. Then I read your article. I looked for the Xmodmap file in my home directory and other places, but didn't find any.

When KDE was able to assign my multimedia keys, where did it store this information? xmodmap was already installed in my system. Did it do something unrelated to xmodmap?
 
Old 02-12-2012, 11:31 AM   #4
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
You were right to stick to the KDE tools. They're designed for the job and properly tested. The web site dates from 2008, and there's no guarantee that the advice will work with a current version of KDE.

The Xmodmap file has to be created.

KDE does the job with its own tools. The details of the shortcuts will be recorded somewhere in the configuration section of your home directory. They're probably buried deep: e.g. in Gnome they're at ~/.gconf/apps/gnome_settings_daemon/keybindings/%gconf.xml!
 
1 members found this post helpful.
Old 02-12-2012, 03:53 PM   #5
javascriptninja
Member
 
Registered: Jan 2012
Posts: 41

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by DavidMcCann View Post
You were right to stick to the KDE tools. They're designed for the job and properly tested. The web site dates from 2008, and there's no guarantee that the advice will work with a current version of KDE.

The Xmodmap file has to be created.

KDE does the job with its own tools. The details of the shortcuts will be recorded somewhere in the configuration section of your home directory. They're probably buried deep: e.g. in Gnome they're at ~/.gconf/apps/gnome_settings_daemon/keybindings/%gconf.xml!
I did
Quote:
locate gconf.xml
and it found lots of files. I found directories similar to what you described, but with slightly different names. KDE wouldn't store it there though, would it?
 
Old 02-13-2012, 10:40 AM   #6
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
No: gconf is gnome configuration. Not being a fan of KDE (to put it mildly), I'd forgotten where the files live, but it seems that ~/.kde4 is the likely place. These sites look interesting
http://techbase.kde.org/KDE_System_A...guration_Files
https://wiki.archlinux.org/index.php/KDE
 
  


Reply

Tags
configuration, kde, keyboard, mapping, shortcut



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
Make nm-applet store keys under KDE Jeff91 Linux - General 1 04-13-2010 05:58 PM
Multimedia keys, kde 4.2.x manwichmakesameal Slackware 2 07-26-2009 12:40 PM
Configure multimedia keys in Slackware 12.2 and KDE El Nigromante Slackware 1 12-16-2008 07:16 PM
Getting multimedia keys working in FC9 KDE 4.1 dwmorton Linux - Laptop and Netbook 2 09-18-2008 09:01 PM
Multimedia Keys in KDE 3.2 GameboyHippo Linux - Software 2 12-15-2003 01:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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

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
Open Source Consulting | Domain Registration