In a non X Deb9 unit I have a mapping file that I load with loadkeys to remap a couple of keys during boot. I would like to make this change permanent. Where are the default keymaps held in Deb9 and would it be possible to save the modified (after loadkeys run) keymap with a unique name and set the unit to default to that on boot? To allow loadkeys to run for normal user I've had to mess with permissions, which would like to avoid.
K.
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
loadkeys make permanent
Re: loadkeys make permanent
You should investigate this
Code: Select all
dpkg-reconfigure locales console-data keyboard-configuration
Re: loadkeys make permanent
that seems to be about predefined locales and keyboards?
If there is doco about how to clone existing one apply loadkeys mapping and save as new name ...
If there is doco about how to clone existing one apply loadkeys mapping and save as new name ...
Re: loadkeys make permanent
If the keyboard is correctly configured, why do you still need loadkeys ?
Or if you need a really so specific custom key mapping, you can place your loadkeys command in /etc/rc.local and enable the systemd service
Code: Select all
find /usr/share/keymaps/ -type f
Code: Select all
#!/bin/sh -e
#
loadkeys my_specific_keymap
Code: Select all
systemctl enable rc-local.service
Re: loadkeys make permanent
why - because I want Shift+Tab to be recognised (when no X is in use)
the following works when loaded via loadkeys but I had to change permissions to allow user to run the loadkeys.
string F91 = "\033[Z"
string F92 = "\033\033[Z"
keycode 15 = Tab F91
alt keycode 15 = Meta_Tab
shift alt keycode 15 = F92
- - -
there doesn't appear to be an /etc/rc.local in vanilla Deb9 ?
- - -
the format of /usr/share/keymaps/ seems different to what I see in dumpkeys so not sure if I can apply the above directly to one there.
the following works when loaded via loadkeys but I had to change permissions to allow user to run the loadkeys.
string F91 = "\033[Z"
string F92 = "\033\033[Z"
keycode 15 = Tab F91
alt keycode 15 = Meta_Tab
shift alt keycode 15 = F92
- - -
there doesn't appear to be an /etc/rc.local in vanilla Deb9 ?
- - -
the format of /usr/share/keymaps/ seems different to what I see in dumpkeys so not sure if I can apply the above directly to one there.
Re: loadkeys make permanent
No because not needed and disabled by default in systemd.k829king wrote: there doesn't appear to be an /etc/rc.local in vanilla Deb9 ?
Then create it +
Code: Select all
chmod +x /etc/rc.local