From 57c543d73fa33a508bd3c0d6d5d090e9dea31bdf Mon Sep 17 00:00:00 2001 From: Maarten Staa Date: Wed, 29 Jan 2025 13:28:38 +0100 Subject: [PATCH] Add NSStatusItemSpacing and NSStatusItemSelectionPadding Add `NSStatusItemSpacing` and `NSStatusItemSelectionPadding` to `NSGlobalDomain` options. These options control the spacing between and padding inside status icons in the menu bar. With these options, it's possible to squeeze more items on the menu bar, something that's especially useful on machines with a notch. This is a copy of #872, which was closed without being merged. --- modules/system/defaults/NSGlobalDomain.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/modules/system/defaults/NSGlobalDomain.nix b/modules/system/defaults/NSGlobalDomain.nix index 01e7a459e..b2c68a4a7 100644 --- a/modules/system/defaults/NSGlobalDomain.nix +++ b/modules/system/defaults/NSGlobalDomain.nix @@ -248,6 +248,24 @@ in { ''; }; + system.defaults.NSGlobalDomain.NSStatusItemSpacing = mkOption { + type = types.nullOr types.int; + default = null; + example = 12; + description = '' + Sets the spacing between status icons in the menu bar. The default is null. + ''; + }; + + system.defaults.NSGlobalDomain.NSStatusItemSelectionPadding = mkOption { + type = types.nullOr types.int; + default = null; + example = 6; + description = '' + Sets the padding around status icons in the menu bar. The default is null. + ''; + }; + system.defaults.NSGlobalDomain.InitialKeyRepeat = mkOption { type = types.nullOr types.int; default = null;