Saturday, May 11, 2024
 Popular · Latest · Hot · Upcoming
10
rated 0 times [  10] [ 0]  / answers: 1 / hits: 5812  / 2 Years ago, sun, february 20, 2022, 12:00:06

I have a problem with my Ubuntu, running 14.04 LTS.



The problem is that I'm trying to user Alt+F4 and Alt+Tab and it doesn't work, it only works with the Right Alt.



I also tried to set a new keyboard short-cut for Alt+F4 and Alt+Tab but as soon as I press Alt the short-cut is set.



The thing I noticed once I set the shortcut is that the key didn't correspond with Alt, it was a Level3 Shift.



I search all over the internet of a method to change that Level3 Shift to the normal Alt but only found solution to do the opposite.



Any suggestions?


More From » unity

 Answers
2

Try xev and xmodmap:




  1. Run the command xev then hover your mouse over the black square.

  2. Press the Alt key, and make a note of the following: My output was this (shortened): KeyPress event... keycode 64 (keysym 0xffe9, Alt_L), ... XFilterEvent returns: False


  3. The important part is the keycode: Mine was 64, but yours is probably different.


  4. Run the command xmodmap -e "keycode 64 = Alt_L" substituting 64 for whatever output you get (possibly 135 on your keyboard)


  5. This should have changed it. If it has, you then need to run the following command: xmodmap -pke >~/.Xmodmap


  6. Create a file called .xinitrc in your home folder (/home/username)


  7. In that file paste the line xmodmap .Xmodmap. This should save it forever.




See this answer for details about remapping.



My pronouns are He / Him


[#25185] Monday, February 21, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
atelti

Total Points: 194
Total Questions: 129
Total Answers: 110

Location: North Korea
Member since Tue, Jun 16, 2020
4 Years ago
;