stumpwm.stumpwm-contrib/util/swm-ssh/README.org
Kirill A. Korinsky 46c3ef3cf1
Introduce *swm-ssh-default-term-title-opt*
`-T` looks a universal option for `xterm` and `urxvtc`, but `sakura`
requries `-t` (or `--title`) for example.
2025-05-25 20:56:09 +02:00

1.2 KiB

Requirements

  • cl-ppcre

    Install cl-ppcre from the REPL:

    (ql:quickload :cl-ppcre)

Usage

This simple plugin parses your ssh config file and opens a connection using a teminal emulator.

Put the following in your ~/.stumpwmrc

(load-module "swm-ssh")

And use it either by calling the appropriate function directly (swm-ssh-menu) or by defining a keybind (example <prefix> C-a) in your ~/.stumpwmrc

(define-key *root-map* (kbd "C-a") "swm-ssh-menu")

Variables

swm-ssh-default-term

Default terminal to open an ssh connection is urxvtc. To change it, use

(setq swm-ssh:*swm-ssh-default-term* "xterm")

swm-ssh-default-term-title-opt

Default terminal's title option is -T which is used to setup title to a connection host. It works with both xterm and urxvtc out of the box. nil disable it. To change it, use

(setq swm-ssh:*swm-ssh-default-termt-itle-opt* "--title")

swm-ssh-known-host-path

Path to thee list of know host bz SSH client. Defaults to ~/.ssh/known_hosts. Change it with

(setq swm-ssh:*swm-ssh-known-hosts-path* "/path/to/ssh/known_hosts")