Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS: Introduce config to hide Ghostty from the dock and cmd-tab #4538

Open
mitchellh opened this issue Jan 3, 2025 · 1 comment
Open
Labels
gui GUI or app issue regardless of platform (i.e. Swift, GTK) os/macos

Comments

@mitchellh
Copy link
Contributor

Discussed in #3810

Originally posted by frolvanya December 28, 2024
image

I'm using ghostty primarily in quick-terminal mode, so I don't want to see an icon in the dock

Proposal

Introduce a new configuration macos-hidden (boolean). When set to true, the Ghostty app will be hidden. I think concretely, this means turning the app into an "accessory" app:

NSApp.setActivationPolicy(.accessory)

This has a number of downsides, so it must be carefully documented. Notably:

  • App no longer appears in dock
  • App no longer appears in cmd-tab
  • Looks like keyboard layout changes are no longer automatic

I think as a future improvement we can introduce a menu bar icon that can bring the app to focus when click (optional). But introducing this option as default false will help get some quick-terminal-only users going more happily.

@mitchellh mitchellh added gui GUI or app issue regardless of platform (i.e. Swift, GTK) os/macos labels Jan 3, 2025
@mitchellh
Copy link
Contributor Author

Note this Raycast behavior we may want to look into as well: #3810 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gui GUI or app issue regardless of platform (i.e. Swift, GTK) os/macos
Projects
None yet
Development

No branches or pull requests

1 participant