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