Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #243222
| From | David Wright <deblis@lionunicorn.co.uk> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: xmodmap settings lost when (usb) keyboard reattached. |
| Date | 2021-12-17 18:00 +0100 |
| Message-ID | <DvoKn-4Ae-15@gated-at.bofh.it> (permalink) |
| References | <DuFNi-18I-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed 15 Dec 2021 at 16:53:54 (+0000), Tim Woodall wrote: > I run the following command to switch my caps-lock to escape: > xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape' > > However, if I disconnect and reconnect my keyboard (I have a KVM switch > box so this happens quite a lot) the setting is lost. > > Before I start writing udev rules to auto reapply this setting when the > keyboard is (re)attached, is there some other, better, way to make this > setting stick? You could try editing /etc/console-setup/remap.inc and running # dpkg-reconfigure console-setup A change at that level might be inherited by whatever's restarting and causing you to lose the settings. Note that for whatever reason (lost in the mists), I always run dpkg-reconfigure console-setup while X is not running, ie not even in a C-A-Fn virtual console. That constraint might have changed, IDK. Cheers, David.
Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread
xmodmap settings lost when (usb) keyboard reattached. Tim Woodall <debianuser@woodall.me.uk> - 2021-12-15 18:00 +0100
Re: xmodmap settings lost when (usb) keyboard reattached. Vincent Lefevre <vincent@vinc17.net> - 2021-12-15 18:10 +0100
Re: xmodmap settings lost when (usb) keyboard reattached. Anssi Saari <as@sci.fi> - 2021-12-17 11:40 +0100
Re: xmodmap settings lost when (usb) keyboard reattached. John Crawley <john@bunsenlabs.org> - 2021-12-16 03:30 +0100
Re: xmodmap settings lost when (usb) keyboard reattached. David Wright <deblis@lionunicorn.co.uk> - 2021-12-17 18:00 +0100
csiph-web