LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-01-2014, 11:50 PM   #1
ThemePark
LQ Newbie
 
Registered: Sep 2013
Posts: 12

Rep: Reputation: Disabled
Swapping Menu key with Space


My space bar has been broken, and since I never use the Menu key I wanna map that to work as the space bar instead. I'm using setxkbmap and have been looking at evdev.lst, but there doesn't seem to be an option for that swap. So how can I do it?
 
Old 10-02-2014, 10:56 AM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Check out xbindkeys it's in most distros or compiles from source easy enough, it allows you to send events to when certain mousebuttons or keys are pressed, failing that fork out for a new keyboard htey aint THAT expensive.
 
Old 10-03-2014, 11:36 AM   #3
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
Look at /usr/share/X11/xkb/keycodes/evdev. In that you'll find entries for <MENU> and <SPCE>: swap their numbers.
 
Old 10-10-2014, 10:55 AM   #4
ThemePark
LQ Newbie
 
Registered: Sep 2013
Posts: 12

Original Poster
Rep: Reputation: Disabled
Thanks DavidMcCann, that did the trick.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cant launch aemenu from xbindkeys nor use menu key Siljrath Linux - Desktop 1 09-01-2014 11:01 AM
I want my Ubuntu USB key to boot with no menu evansd321 Linux - Newbie 3 03-14-2011 08:20 AM
Windows Key to K Menu Jon Briggs SUSE / openSUSE 15 03-19-2007 04:29 PM
Space Key in Shell Script joshlamerritt Linux - General 1 02-20-2004 01:31 PM
I use a GtkItemFactory to make menu,but I want to use a number key to control menu? jiang10000 Programming 0 08-27-2003 02:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:34 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