logoalt Hacker News

corlinpyesterday at 7:19 PM8 repliesview on HN

Every time I get a new Mac, I run these commands to reduce the spacing between menu bar icons. Lets you fit at least 2x the number of items in the menu bar.

```

defaults -currentHost write -globalDomain NSStatusItemSpacing -int 2

defaults -currentHost write -globalDomain NSStatusItemSelectionPadding -int 2

```


Replies

richardlblairyesterday at 8:07 PM

This was always my biggest gripe about using a mac, the OS that "just works". I ended up a bunch of commands I had to run and a stack of apps I needed to install for it to feel usable.

show 11 replies
hagendaasalpinetoday at 7:00 AM

with nix-darwin you can declare that config:

  system.defaults.NSGlobalDomain = {  
    NSStatusItemSpacing = 2;  
    NSStatusItemSelectionPadding = 2;  
  };
potatocoffeeyesterday at 7:50 PM

This is so much better, thank you for this.

HaloZerotoday at 12:53 AM

Hmmm, is this supposed to do something on OSX 26.3? I tried setting it to 10 and it doesn't seem to do anything? Wonder if there's something new for Tahoe.

show 2 replies
galkktoday at 12:54 AM

Thank you!

Do you have anything else as useful as this? THis is perfect

show 1 reply
dwgtoday at 1:24 AM

what are the default values, in case someone wants to restore them?

show 1 reply
swiftcoderyesterday at 8:02 PM

Dude. How am I only just learning this? This needs to be plastered loudly over the internet

827ayesterday at 8:53 PM

[dead]