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

How to configure menu bar? #214

Open
mgajda opened this issue Oct 12, 2022 · 1 comment
Open

How to configure menu bar? #214

mgajda opened this issue Oct 12, 2022 · 1 comment

Comments

@mgajda
Copy link

mgajda commented Oct 12, 2022

At the moment there is only a showMenuBar :: Bool configuration option.
It would be nice to add menubar :: Terminal -> IO (Maybe MenuBar) instead that changes menubar items,
and defaultMenubar for default one.

I am not sure if it is not possible to change menubar at all.

Example applications:

  • Add SSH menu for remote shell calls that allows to copy file to remote server or use other out-of-band SSH commands like opening ports.
  • Option to show pty, pid, and CPU/mem usage in tabbar for applications taking more than 10% of each.
  • Shell integration/completion menubar for shells that are configured to support it.
  • Menu for recording expect scripts and then replaying those that have been recorded with the same application.
@cdepillabout
Copy link
Owner

cdepillabout commented Oct 12, 2022

My initial thought is that this menubar :: Terminal -> IO (Maybe MenuBar) function could just be an additional hook, like in #215. Is there something that you think makes this is different than a hook? If not, maybe we could close this issue and move your comment to #215.

Either way, I agree that this menubar :: Terminal -> IO (Maybe MenuBar) and defaultMenuBar function should exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants