Adjusting the keys in my Debian desktop with LightDM 0 ▲ Andy Balaam's Blog 8 hours ago · Tech · hide I love my little GPD Pocket 3. I have managed to become reasonably comfortable with a US keyboard layout since that makes most of the keys do what they say on them. But I just can't have the @ key on the 2. I need my double-quote there - my poor old brain won't allow anything else. So I use xmodmap to swap the behaviour of the two relevant keys using a file called .Xmodmap in my home directory: keycode 11 = 2 quotedbl 2 quotedbl keycode 48 = apostrophe at apostrophe at (You can discover the right names and codes for this file using the xev tool.) I can activate this manually by typing: xmodmap ~/.Xmodmap but it took me quite a lot of struggling to find an effective way to activate it automatically. The best-looking solution I tried on my Debian + LightDM setup was to add the above command inside a file called .xsessionrc in my home directory. I confirmed that LightDM does source this file during startup, but it doesn't take effect, presumably because some other part of the startup… Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town