ctucx.git: nixfiles

ctucx' nixfiles

commit eef5ba8df6ab3448a790dfd66981f0956774375d
parent e9774add063ff1a03736f31b25449017c0ff194a
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sun, 20 Mar 2022 20:46:30 +0100

machines/blechbuechse/keyboard: suppress output of hidutil
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/machines/blechbuechse/keyboard.nix b/machines/blechbuechse/keyboard.nix
@@ -74,8 +74,8 @@ let
           <string>${XPCEventStreamHandler}/bin/xpc_set_event_stream_handler</string>
           <string>${pkgs.writeScript "hidutil" ''
             #!/usr/bin/env bash
-            osascript -e 'display notification "Loaded UserKeyMapping for ${entry.VendorID}:${entry.ProductID}" with title "hidutil"'
-            hidutil property --matching '{"ProductID":0x${entry.ProductID}}' --set '{"UserKeyMapping":${builtins.toJSON entry.UserKeyMapping}}'
+            osascript -e 'display notification "Load UserKeyMapping for ${entry.VendorID}:${entry.ProductID}" with title "hidutil"'
+            hidutil property --matching '{"ProductID":0x${entry.ProductID}}' --set '{"UserKeyMapping":${builtins.toJSON entry.UserKeyMapping}}'  > /dev/null
           ''}</string>
         </array>