Skip to content

Opens a new tab in existing window of gnome-terminal

License

Notifications You must be signed in to change notification settings

tadd/gnome-terminal-new-tab-in-existing-window

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

gnome-terminal-new-tab-in-existing-window

Anything else to explain besides the name?

gnome-terminal-new-tab-in-existing-window [any additional options here]

This flimsy wrapper behaves like gnome-terminal --tab ..., but opens a new tab in the existing window if possible. Any options are passed directly to gnome-terminal.

It does nothing more than set two environment variables, GNOME_TERMINAL_SERVICE and GNOME_TERMINAL_SCREEN.

Dependencies

  • busctl
    • Get current bus name and screen ID of gnome-terminal
  • Activate Window By Title (GNOME Extension)
    • Activate the existing window after a new tab opened
    • Supports both of X and Wayland, maybe
    • This extension seemed to be easier than to use the portable one

About

Opens a new tab in existing window of gnome-terminal

Topics

Resources

License

Stars

Watchers

Forks

Languages