https://github.com/tadd/gnome-terminal-new-tab-in-existing-window
Opens a new tab in existing window of gnome-terminal
https://github.com/tadd/gnome-terminal-new-tab-in-existing-window
gnome-terminal tabs wrapper
Last synced: 7 months ago
JSON representation
Opens a new tab in existing window of gnome-terminal
- Host: GitHub
- URL: https://github.com/tadd/gnome-terminal-new-tab-in-existing-window
- Owner: tadd
- License: mit
- Created: 2023-01-31T13:58:51.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-06T05:35:54.000Z (about 2 years ago)
- Last Synced: 2025-01-22T09:33:22.555Z (9 months ago)
- Topics: gnome-terminal, tabs, wrapper
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
gnome-terminal-new-tab-in-existing-window
=========================================Anything else to explain besides the name?
```bash
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](https://extensions.gnome.org/extension/5021/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](https://wayland.app/protocols/xdg-activation-v1#xdg_activation_v1:request:activate)