From e323260559ca27276b949b8a2f228f7f99f935fd Mon Sep 17 00:00:00 2001 From: Timo Bingmann Date: Sun, 21 Sep 2025 17:00:10 -0700 Subject: [PATCH] macos: set up symbol hotkeys --- flake.nix | 1 + system/macos/hotkeys.nix | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 system/macos/hotkeys.nix diff --git a/flake.nix b/flake.nix index b84e632..d34b031 100644 --- a/flake.nix +++ b/flake.nix @@ -29,6 +29,7 @@ imports = [ ./system/macos/environment.nix ./system/macos/fonts.nix + ./system/macos/hotkeys.nix ./system/macos/nix.nix ./system/macos/system.nix ./system/macos/yabai.nix diff --git a/system/macos/hotkeys.nix b/system/macos/hotkeys.nix new file mode 100644 index 0000000..8c1c3b6 --- /dev/null +++ b/system/macos/hotkeys.nix @@ -0,0 +1,34 @@ +{ config, lib, ... }: +{ + system.defaults.CustomUserPreferences = { + "com.apple.symbolichotkeys" = { + AppleSymbolicHotKeys = { + "52" = { + # Disable '^ + Cmd + D' to "Turn Dock hiding on/off" + enabled = false; + }; + "160" = { + # Disable "Show Launchpad" + enabled = false; + }; + + "32" = { + # Mission Control - Trigger Mission Control + enabled = true; + value = { + type = "standard"; + parameters = [ 65535, 126, 11534336 ]; + }; + }; + "34" = { + # Mission Control - Trigger Mission Control + enabled = true; + value = { + type = "standard"; + parameters = [ 65535, 126, 11665408 ]; + }; + }; + }; + }; + }; +}