Mailinglist Archive: opensuse (1264 mails)

< Previous Next >
Re: [opensuse] Mapping and re-mapping Keyboard Keys
* Paul Groves <paul.groves.787@xxxxxxxxx> [06-27-17 09:45]:
On 27/06/17 14:39, Patrick Shanahan wrote:
* Paul Groves <paul.groves.787@xxxxxxxxx> [06-27-17 09:22]:
So now I need to know how can I add this to the xmodmap configuration.

I found a very old article from 2004 that said to save the lines in
~/.Xmodmap but the file did not exist and it does not work when I log out or
man xmodmap:
xmodmap [-options ...] [filename]
The filename specifies a file containing xmodmap expressions to be
executed. This file is usually kept in the user's home directory with
a name like .xmodmaprc.

so it probably will not find ".Xmodmap" as it specifies it looks for

Scratch that for now. Ubuntu does not use this anymore apparently it uses

However, I found I found:

keycode 156 = XF86Launch1 NoSymbol XF86Launch1
keycode 157 = XF86Launch2 NoSymbol XF86Launch2
keycode 210 = XF86Launch3 NoSymbol XF86Launch3
keycode 211 = XF86Launch4 NoSymbol XF86Launch4

so I have used these keycodes for HK1 to 4 and I can assign them in the gui

now just to run the script at boot?

put them in ~/.xmodmap and they will be read when <user> logs in, iiuc.

(paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri openSUSE Community Member facebook/ptilopteri
Registered Linux User #207535 @
Photos: paka @ IRCnet freenode

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups