LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-13-2004, 06:48 PM   #1
krock923
Member
 
Registered: Jul 2004
Posts: 171

Rep: Reputation: 30
two quick keyboard questions


Hi. I have two quick (hopefully) questions about configuring my keyboard. I have a microsoft multimedia keyboard and would like to get the volume, pause, play, open folder, launch application, etc working under linux. Also, i'd like to get the windows key to bring up the main menu. I used xev to find out the keycodes for all of the keys i want to change but where do I go from there? Is there a file I have to modify or some setting I have to change? Thanks for your help.
 
Old 07-13-2004, 09:00 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
I'd have to do a bit of study on it, but I found a file, /etc/X11/Xmodmap, which looks promising.
Code:
!
! This is the "Xmodmap" file for Standard Keyboards with Windows keys.
!
! If you want to have other keymappings for special X-Terminals, just 
! create a "Xmodmap.${DISPLAY}" file with the according changes.
!

keycode 22  = BackSpace
keycode 115 = F13
keycode 117 = Menu
Here is from a message I found on the internet:
Code:
-------
!
! Map MS Keyboard keys
!
! Back
keycode 234=XF86Launch0
! Forward
keycode 233=XF86Launch1
! Stop
keycode 232=XF86Launch2
! Search
keycode 229=XF86Launch3
! Favourites
keycode 230=XF86Launch4
! Web/Home
keycode 178=XF86Launch5
! Mail
keycode 236=XF86Launch6
! "MY Computer"
keycode 235=XF86Launch7
! "Calc"
keycode 161=XF86Launch8
! "Sleep"
keycode 223=XF86Launch9
--------

The scancodes can be determined by using "xev" and mapped to keysyms 
from /usr/X11R6/include/X11/XF86keysym.h

I seem to remember that there are things like XF86Mail too instead of 
Launchx keys, but I just couldn't be stuffed.

I'm sure theres an easier way of doing this, but in my case I wanted to 
be able to map the keys through Enlightenment (and now IceWM) for some 
to execute arbitrary commands and others to do things like workspace 
switching. Hotkeys was not an option.
This link may provide more information on how to associate actions with multimedia keyshttp://www.desktoplinux.com/cgi-bin/...age=5&Session=

Lastly, here is a link to a linuxFormat keyboard tutorial.
http://www.linuxformat.co.uk/archive...8.tut_keyb.pdf

Last edited by jschiwal; 07-13-2004 at 09:16 PM.
 
  


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
three quick questions... honda_ricer Linux - Newbie 9 11-30-2005 07:53 AM
A few quick questions... gflores Linux - Newbie 3 01-10-2005 12:47 AM
A few quick questions maxwolfie Linux - Newbie 4 06-02-2004 09:18 PM
Will Microsoft Internet Keyboard Quick Keys work? Borg Swarm Linux - Hardware 3 05-05-2004 08:43 PM
quick questions yocompia Slackware 5 06-20-2003 04:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration