Files
control_visibility_of_syste…/README.md

33 lines
798 B
Markdown
Raw Normal View History

2025-07-25 15:06:42 +02:00
## how to control visibility of menulets via terminal
2025-07-25 14:22:12 +02:00
2025-07-25 15:06:42 +02:00
### on MacOS X 10.11 (and probably before):
2025-07-25 14:22:12 +02:00
```
$ defaults read com.apple.systemuiserver
```
be cautious: in this command :menuExtra:1 refers to the second entry from the output of the previous command
```
$ /usr/libexec/PlistBuddy -c 'Delete :menuExtras:1' ~/Library/Preferences/com.apple.systemuiserver.plist
$ killall SystemUIServer
```
2025-07-25 15:15:18 +02:00
the second command needs to be applied multiple times, at least some times :-)
### going from Montery (and probably above, not tested !)
Show WIFI menu-item:
```
$ defaults -currentHost write com.apple.controlcenter WiFi -int 18
```
Hide WIFI menu-item:
```
$ defaults -currentHost write com.apple.controlcenter WiFi -int 24
```
It works instantly, not even needed to killall SystemUIServer