A simple Obsidian plugin that hides macOS traffic light buttons (red, yellow, green window controls) for a cleaner, distraction-free experience.
main.js and manifest.json into your vault's plugins folder:
VaultFolder/.obsidian/plugins/hide-traffic-lights/The plugin uses Electron's setTrafficLightPosition() API to move the traffic light buttons off-screen (position: -100, -100). It monitors these events to re-apply the setting:
When you disable the plugin, traffic lights are restored to their default position.
# Install dependencies
npm install
# Build plugin
npm run build
# Development mode (auto-rebuild)
npm run dev
If you encounter issues, please report them on GitHub Issues.
MIT