Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
-1
rated 0 times [  -1] [ 0]  / answers: 1 / hits: 940  / 2 Years ago, thu, july 28, 2022, 3:44:14

I'm running Ubuntu 13.10. When I remap keys using xmodmap using the instructions at How do I remap certain keys or devices? , the remapping works fine. But when I create the .xinitrc file as a plain text file with xmodmap .Xmodmap in the home folder, and restart the computer, I still lose the changes. I've also tried xmodmap ~/.Xmodmap but that made no difference. When I simply run xmodmap .Xmodmap in the command after booting, it does work. Any ideas?


More From » keyboard

 Answers
0

You can make a script, to run each time you login.




  • Create an empty .sh file

  • Input your code inside. It can look like this:




#!/bin/bash
# This is my remapping to change AltGr with W. Edit it to work with yours.
sleep 25
xmodmap -e "remove mod1 = Alt_R"
xmodmap -e "keycode 108 = w W Cyrillic_ve Cyrillic_VE"



  • Make it executable.


  • Add it to Application Autostart tab of Session and Startup.



[#27223] Thursday, July 28, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
istictroubli

Total Points: 306
Total Questions: 96
Total Answers: 114

Location: Sao Tome and Principe
Member since Wed, Jul 13, 2022
2 Years ago
istictroubli questions
;