Electricmonk

Ferry Boender

Programmer, DevOpper, Open Source enthusiast.

Blog

sshbg: Change terminal background when SSHing (for Tilix and Xterm)

Saturday, September 23rd, 2017

This is gonna be a short post. I wrote a tool to change the background color of my terminal when I ssh to a machine. It works on Tilix and Xterm, but not most other terminals because they don’t support the ANSI escape sequence for changing the background color. It works by combining SSH’s LocalCommand option in combination with a small Python script that parses the given hostname. Here’s a short gif of it in action:
 

It’s called sshbg.

The text of all posts on this blog, unless specificly mentioned otherwise, are licensed under this license.