LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (http://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Preserve modified keymap across reboot in LXDE/Openbox (http://www.linuxquestions.org/questions/linux-desktop-74/preserve-modified-keymap-across-reboot-in-lxde-openbox-885949/)

nokangaroo 06-12-2011 08:32 PM

Preserve modified keymap across reboot in LXDE/Openbox
 
This post was originally about xkb symbols, but I altered the title to fit the solution I found. I followed the instructions on

http://madduck.net/docs/extending-xkb/

to modify my keyboard map, which unlike xmodmap actually works.

xkbcomp $DISPLAY xkb.dump
edit xkb.dump to fit the new layout
(In my case I swapped the Ctrl and Win keys)
xkbcomp xkb.dump.modified $DISPLAY (may be necessary to run this twice)
log out and back in

To preserve this across a reboot, I created a file $HOME/.config/lxsession/Lubuntu/autostart (again, many thanks to the Archwiki people), which reads

@xkbcomp xkb.dump.modified $DISPLAY

EricTRA 06-17-2011 01:53 AM

Hello,

Thank you for sharing. Off the Zero Reply List.

Kind regards,

Eric


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