keyboard fixes for cnixpad

This commit is contained in:
cnst
2024-10-14 06:31:07 +02:00
parent e4b302d193
commit f70061cc24

View File

@@ -1,9 +1,14 @@
{
lib,
config,
osConfig,
...
}: let
inherit (lib) mkIf mkEnableOption;
kbOption =
if osConfig.networking.hostName == "cnixpad"
then "ctrl:swapcaps"
else "";
cfg = config.userModules.wm.hyprland.cnst.inputs;
in {
options = {
@@ -22,6 +27,7 @@ in {
input = {
kb_layout = "se";
kb_variant = "nodeadkeys";
kb_options = kbOption;
follow_mouse = 1;
accel_profile = "flat";
sensitivity = 0; # -1.0 - 1.0, 0 means no modification.