From 1cfcca408872863e9bffce7adf80484cc4460653 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 | 83 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 84 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..d14cc92 --- /dev/null +++ b/system/macos/hotkeys.nix @@ -0,0 +1,83 @@ +{ config, lib, ... }: +{ + system.defaults.CustomUserPreferences = { + "com.apple.symbolichotkeys" = { + AppleSymbolicHotKeys = { + ### + ### Launchpad & Dock + ### + + # Turn Dock hiding on/off - "^ + Cmd + D" + "52".enabled = false; + # Show Launchpad + "160".enabled = false; + + ### + ### Mission Control + ### + + # Trigger Mission Control - "Cmd + Up" + "32" = { + enabled = true; + value = { + type = "standard"; + parameters = [ 65535 126 11534336 ]; + }; + }; + # Show Notification Center + "163".enabled = false; + # Show Notification Center + "32".enabled = false; + # Application Windows + "33".enabled = false; + # Show Desktop + "36".enabled = false; + # Quick Note + "190".enabled = false; + + ### + ### Input Sources + ### + + # Select previous input source - "^ + Space" + "60".enabled = false; + # Select next input source - "^ + Opt + Space" + "61".enabled = false; + + ### + ### Screenshots + ### + + # Save picture of screen as a file - "^ + Shift + F11" + "28" = { + enabled = true; + value = { + type = "standard"; + parameters = [ 65535 103 8781824 ]; + }; + }; + # Copy picture of screen to the clipboard + "29".enabled = false; + # Save picture of selected area as a file - "^ + F11" + "30" = { + enabled = true; + value = { + type = "standard"; + parameters = [ 65535 103 8650752 ]; + }; + }; + # Copy picture of selected area to the clipboard + "31".enabled = false; + # Screenshot and recording options + "184".enabled = false; + + ### + ### Spotlight + ### + + # Show Spotlight Search - "Cmd + Space" + #"64".enable = false; + }; + }; + }; +}