From c937e0f96420b7e75c9d16e4f1f9166135b57a82 Mon Sep 17 00:00:00 2001 From: Himadri Bhattacharjee <107522312+lavafroth@users.noreply.github.com> Date: Fri, 26 Dec 2025 18:25:09 +0530 Subject: [PATCH] fix: use keyd for sticky keys instead of the broken KDE implementation --- hosts/default/configuration.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/hosts/default/configuration.nix b/hosts/default/configuration.nix index 789dc37..c9a62ff 100644 --- a/hosts/default/configuration.nix +++ b/hosts/default/configuration.nix @@ -163,6 +163,35 @@ # Make sure opengl is enabled hardware.graphics.enable = true; hardware.bluetooth.enable = true; + services.keyd = { + enable = true; + keyboards.sticky_keys.settings = { + main = { + + control = "oneshot(control)"; + meta = "oneshot(meta)"; + shift = "oneshot(shift)"; + leftalt = "oneshot(alt)"; + }; + + control = { + control = "toggle(control)"; + }; + + meta = { + meta = "toggle(meta)"; + }; + + shift = { + shift = "toggle(shift)"; + }; + + alt = { + leftalt = "toggle(alt)"; + }; + + }; + }; console = { earlySetup = true;