Re: What's the simplest way to map (part 2)
On Mon 12 Jun 2023 at 09:02:51 (+), Ottavio Caruso wrote: > then: > > $ sudo service keyboard-setup restart > $ sudo udevadm trigger --subsystem-match=input --action=change > > but I can't see any changes. I use, after editing: # dpkg-reconfigure console-setup ; service console-setup restart # dpkg-reconfigure keyboard-configuration ; service keyboard-setup restart and for reasons that might be cargo-cult, out-of-date, or whatever, I do this while X is not running. This is straightforward if you just login and then run startx (as I do), rather than running a Display Manager, which starts X before you login. If it still doesn't work, there are threads on debian-user from people who regularly use language layout switching, so a search from: https://lists.debian.org/debian-user/ might find you some help. Cheers, David.
Re: What's the simplest way to map ...
Rerereposted owing to excessive "mail cleaning". Part 1. On Mon 12 Jun 2023 at 09:02:51 (+), Ottavio Caruso wrote: > I've also manually edited /etc/default/keyboard That's the file I change. Mine's attached as a syntax example; commas /inside/ the quotes. Part 2 may follow, whenever I succeed in posting part 1. Cheers, David. # KEYBOARD CONFIGURATION FILE # Consult the keyboard(5) manual page. XKBMODEL="pc105" XKBLAYOUT="us" XKBVARIANT="" XKBOPTIONS="lv3:ralt_switch,compose:caps,terminate:ctrl_alt_bksp" BACKSPACE="guess"
Re: What's the simplest way to map "CTRL + ALT" to "AltGr" [query]
On Sat 10 Jun 2023 at 09:52:43 (+), Ottavio Caruso wrote: > Is there a simple way, without installing gazillion programs and > tweaking tens of configuration files, to have at startup the > combination of CTRL and left ALT produce the same result as AltGr? > This must work for both console and Xorg. Take a look at /usr/share/X11/xkb/rules/base.lst where you see that grp changes to another layout; "switch" means holding the shifting key to switch, whereas "toggle" means tap it without having to hold it down (like accessibility shift keys typically work). grp:toggle Right Alt appears to show the definition for AltGr, so your equivalent would seem to be grp:ctrl_alt_toggle Alt+Ctrl and your file shows the WinKey + SpaceBar definition. There are examples that use this last key combination in the Arch wiki. As for consoles, I've not used grp in keyboard definitions myself. > $ cat .xsessionrc I use /etc/default/locale to set locale variables, viz: $ cat /etc/default/locale # LC_CTYPE added to overall C # This file gets (generated and) updated by update-locale, # but the contents should remain stable under normal circumstances. LANG=C.UTF-8 LC_CTYPE="en_GB.UTF-8" # $ Cheers, David.