keyboard fixes for cnixpad
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user