You are here

Tilde fix Debian Jessie xfce xsession

Submitted by egbert on Wed, 15/11/2017 - 06:28

# find out what key code is mapping to the "less" and "greater" signs
$ xmodmap -pk | grep greater
60 0x002e (period) 0x003e (greater)
94 0x003c (less) 0x003e (greater) 0x007c (bar) 0x00a6 (brokenbar) 0x007c (bar) 0x00a6 (brokenbar)

# edit (or create) ~/.Xmodmap and include the following line in it
keycode 94 = grave asciitilde

# run xmodmap
$ xmodmap ~/.Xmodmap

For it to autorun on login:

  • Create a file called xmodmap in ~/.config/autostart directory, create the directory if it isn't there
  • Mark it executable sudo chmod +x ~/.config/autostart/xmodmap

Clear all saved sessions and disable the "Save Session for future login" in the logout dialog. Then login and the tilde will work in xsessions

bron: Ubuntu Forums thread