From fd85c16d29f89568ef4bf5cef3e1147e76b1a5c0 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 6 Aug 2023 11:44:33 +0800 Subject: Unicode quotations --- article/sway-keysym.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'article/sway-keysym.html') diff --git a/article/sway-keysym.html b/article/sway-keysym.html index 68a1bab..b70bdcc 100644 --- a/article/sway-keysym.html +++ b/article/sway-keysym.html @@ -35,7 +35,7 @@ xkb_symbols "basic" { // leave "basic" in-tact unless you know what you're doing key <CAPS> { [ Shift_L, Shift_L, Shift_L, Shift_L ] }; };

- Note that here, the ``key'' lines are in the form key <X> { [ A, B, C, D ] } ;, where ``X'' is the keycode symbolic name of the physical key you want to press. In my case, it is CAPS. Check /usr/share/X11/xkb/symbols/pc and /usr/share/X11/xkb/symbols/latin, or the relevant files for your keyboard configuration, to look up the keycode symbolic name from the name you're used to. (Looking up Shift_L in symbols/pc gets you to LFSH, which is what you would use in place of ``X''. A is triggered when X is pressed alone, B when it's pressd with Shift, C with AltGr, and D with both AltGr and Shift. + Note that here, the “key” lines are in the form key <X> { [ A, B, C, D ] } ;, where “X” is the keycode symbolic name of the physical key you want to press. In my case, it is CAPS. Check /usr/share/X11/xkb/symbols/pc and /usr/share/X11/xkb/symbols/latin, or the relevant files for your keyboard configuration, to look up the keycode symbolic name from the name you're used to. (Looking up Shift_L in symbols/pc gets you to LFSH, which is what you would use in place of “X”. A is triggered when X is pressed alone, B when it's pressd with Shift, C with AltGr, and D with both AltGr and Shift.

$HOME/.config/sway/config @@ -44,7 +44,7 @@ xkb_symbols "basic" { // leave "basic" in-tact unless you know what you're doing xkb_layout "gbcustom" }

- Of course, replace ``1:1:AT_Translated_Set_2_keyboard'' with your actual keyboard identifier listed in swaymsg -t get_inputs. And reload Sway. + Of course, replace “1:1:AT_Translated_Set_2_keyboard” with your actual keyboard identifier listed in swaymsg -t get_inputs. And reload Sway.

There might be better ways to do so, but I've got this to work. For these unusual setups, it is a bit complicated and not as straightforward as adding a xmondmap line to .xinitrc. Hopefully things would get better as Wayland matures. -- cgit 1.4.1-2-gfad0