about summary refs log tree commit diff
path: root/machines
diff options
context:
space:
mode:
Diffstat (limited to 'machines')
-rw-r--r--machines/profpatsch/shiki.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/machines/profpatsch/shiki.nix b/machines/profpatsch/shiki.nix
index 1040e201..65d36989 100644
--- a/machines/profpatsch/shiki.nix
+++ b/machines/profpatsch/shiki.nix
@@ -433,6 +433,24 @@ in {
             ExecStart = "${pkgs.notmuch}/bin/notmuch new";
           };
         };
+
+        # I could fight against udev or I could just run this script every ten seconds
+        timers.set-keyboard-speed = {
+          description = "set the keyboard speed every 10 seconds in case a keyboard was plugged in";
+          wantedBy = [ "timers.target" ];
+          timerConfig = {
+            OnStartupSec = "10s";
+            OnUnitActiveSec = "10s";
+          };
+        };
+        services.set-keyboard-speed = {
+          description = "set the keyboard speed";
+          serviceConfig = {
+            Type = "oneshot";
+            ExecStart = "${pkgs.xorg.xset}/bin/xset r rate 250 35";
+          };
+        };
+
       }