From 5f1ffe3d3571edf34ee9821d776c1cc787882ea6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Sat, 24 Feb 2024 16:19:00 +0100 Subject: [PATCH] feat(sway): Set compose key to ralt Make typing unicode characters easier --- home/gui/sway-config.nix | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/home/gui/sway-config.nix b/home/gui/sway-config.nix index 4db5782..4166ac9 100644 --- a/home/gui/sway-config.nix +++ b/home/gui/sway-config.nix @@ -70,14 +70,18 @@ in ++ (builtins.map cmdAlways cfg.exec.always) ++ (builtins.map cmdOnce cfg.exec.once); # Keyboard configuration - input."type:keyboard".repeat_delay = "300"; - input."type:keyboard".repeat_rate = "50"; - input."type:keyboard".xkb_options = "caps:swapescape"; - input."type:keyboard".xkb_numlock = "enabled"; + input."type:keyboard" = { + repeat_delay = "300"; + repeat_rate = "50"; + xkb_options = "caps:swapescape,compose:ralt"; + xkb_numlock = "enabled"; + }; # Touchpad - input."type:touchpad".click_method = "clickfinger"; - input."type:touchpad".natural_scroll = "enabled"; - input."type:touchpad".scroll_method = "two_finger"; - input."type:touchpad".tap = "enabled"; - input."type:touchpad".tap_button_map = "lrm"; + input."type:touchpad" = { + click_method = "clickfinger"; + natural_scroll = "enabled"; + scroll_method = "two_finger"; + tap = "enabled"; + tap_button_map = "lrm"; + }; }