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

Make terminal hide/show on keybinding #10

Closed
lu0 opened this issue Apr 30, 2022 · 3 comments
Closed

Make terminal hide/show on keybinding #10

lu0 opened this issue Apr 30, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@lu0
Copy link
Owner

lu0 commented Apr 30, 2022

Current keybinding META + Return opens a new terminal. Make the keybinding toggle the state (minimize/hide and raise/show) instead of raising a new one.

In addition, use other than gnome-terminal. I'd like to use panes + tabs. Maybe tmux? idk

@lu0 lu0 added the enhancement New feature or request label Apr 30, 2022
@lu0 lu0 self-assigned this Apr 30, 2022
@lu0
Copy link
Owner Author

lu0 commented May 3, 2022

xdotool + wmctrl + xprop, maybe by class then ID will be more robust than by name

@lu0
Copy link
Owner Author

lu0 commented May 3, 2022

Moved usage of another terminal emulator to its own issue/todo

@lu0
Copy link
Owner Author

lu0 commented May 5, 2022

Done, added a script that will work with any program knowing its class type and command. The keybinding stays as Super + Enter

Next steps/enhancements could include:

  • Center the cursor on the window after raising it.
  • Support multiple displays (initially for my setup of 1 display left, 1 right).
    • Raise the window in the display the cursor is on.
    • Resize the window accordingly, maybe just maximize it? with gaps :P of course.

Help, I'm going through a rabbit hole...

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

No branches or pull requests

1 participant