diegodario88 / quake-terminal

Gnome Shell extesion to launch a terminal in quake mode
GNU General Public License v3.0
40 stars 6 forks source link

Allow args to be passed to the selected terminal #30

Open pombadev opened 6 months ago

pombadev commented 6 months ago

Hi @diegodario88, thanks for the awesome piece of software, it's the only thing that works on gnome wayland without any issue.

I want to be able to pass args to the current terminal, to specify which profiles or behavior.

Eg: flatpak run org.wezfurlong.wezterm --config='tab_bar_at_bottom=true' --config='pane_focus_follows_mouse=true'

Thank you!

diegodario88 commented 6 months ago

I've been contemplating this proposal, and one straightforward method for its implementation involves adding a new action in the .desktop file. Instead of merely requesting the opening of a new window for the terminal application, we would initiate a custom action that users can register along with custom arguments.

For instance:

[Desktop Action QuakeTerminal]
Name=QuakeTerminal
Exec=flatpak run org.wezfurlong.wezterm --config='tab_bar_at_bottom=true' --config='pane_focus_follows_mouse=true'

then instead of this._terminal.open_new_window(-1); we would this._terminal.launch_action('QuakeTerminal', 0, -1)

To enable this functionality, we need to: