Handle ssh://[user@]host[:port]
scheme links with your preferred terminal emulator in any freedesktop.org/XDG-compliant desktop environment, including Gnome, OpenBox, KDE & Xfce.
- gnome-terminal: opens a new tab titled
[user]@host
- xfce4-terminal: opens a new tab titled
[user]@host
- tmux: opens a new window named
[user]@host
- kitty: opens a new tab titled
[user]@host
; requires remote control be enabled - urxvt: opens a new window titled
[user]@host
- xterm: opens a new window titled
[user]@host
- A supported terminal emulator (
xfce4-terminal
recommended) - openssh-client
- xdg-utils
sudo make install
make activate
By default, the handler will try to pick the first available terminal emulator from the TERMINAL_SEARCH_ORDER
list in ssh-scheme-handler.py
:
xfce4-terminal
gnome-terminal
urxvt
xterm
Alternatively, the terminal emulator may be explicitly specified by:
- either, adding the
-t/--terminal
argument to theExec=
line inssh-scheme-handler.desktop
, e.g.Exec=/usr/local/bin/ssh-scheme-handler %u -t tmux
. - or, setting the
PREFERRED_TERMINAL_EMULATOR
environment variable, e.g.echo export PREFERRED_TERMINAL_EMULATOR=tmux >> ~/.xsessionrc
(Xorg restart required).