Tuesday, 15 May 2018

keyboard - Where are the keymaps in Debian? (Using loadkeys to change keymap.)


From the actual console (e.g. Ctrl-Alt-F3), I'd like to use sudo loadkeys dvorak as in ubuntu. While that automagically works in Ubuntu, Debian wants me to locate a keymap file. I don't have the /usr/share/keymaps that is sometimes given as an answer. find / -type f -name '*dvorak*' turns up a few files which loadkeys won't take. As in this other answer I do not want to make a permanent change to my system using console-config. I want to write simple scripts that can change the keymap on the fly.


Is there a package I can install or something?


Since I'd like to swap Caps-Lock and Escape eventually, I should probably make my own custom keymaps, anyway, correct?



Answer



1) Make sure console-data package is installed:


# loadkeys dvorak
Loading /usr/share/keymaps/i386/dvorak/dvorak.kmap.gz

$ dpkg --search /usr/share/keymaps/i386/dvorak/dvorak.kmap.gz
console-data: /usr/share/keymaps/i386/dvorak/dvorak.kmap.gz

$ cat /etc/debian_version
wheezy/sid

2) IMHO, yes dumpkeys > test.keymap && edit test.keymap && loadkeys test is the easiest.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...