Skip to content

Commit

Permalink
Add NSStatusItemSpacing and NSStatusItemSelectionPadding
Browse files Browse the repository at this point in the history
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 to menu bar, something that's especially useful on machines with a notch!
  • Loading branch information
robharrop authored Feb 17, 2024
2 parents 44f50a5 + c24034c commit 988a958
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions modules/system/defaults/NSGlobalDomain.nix
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,24 @@ in {
'';
};

system.defaults.NSGlobalDomain.NSStatusItemSpacing = mkOption {
type = types.nullOr types.int;
default = null;
example = 12;
description = lib.mdDoc ''
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 = lib.mdDoc ''
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;
Expand Down

0 comments on commit 988a958

Please sign in to comment.