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 the menu bar, something that's especially useful on machines with a notch.

This is a copy of LnL7#872, which was closed without being merged.
  • Loading branch information
MaartenStaa authored Jan 29, 2025
1 parent 349a74c commit 57c543d
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 @@ -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;
Expand Down

0 comments on commit 57c543d

Please sign in to comment.