This is the third post about the Ratpoison window manager.
This one is not about productivity improvement, nor a do-more-with-less feature, but a playful way to achieve a pretty common task: SSH to my home lab.
Remember that scene from E.T., “ET phone home”? Well… When I hit
this pops up in my screen:
Then a new tmux window appears with an SSH connection to my home lab.
This is achieved using the xcowsay program and its ability to use a custom image, in this case:
Using the following Ratpoison configuration snippet:
bind E exec et_phone_home.sh
This snippet appears in my
does the following:
The E.T. image is displayed using xcowsay:
xcowsay --image et.png "ET phone home..." --think
Then switch to the terminal emulator window (urxvt in my case):
ratpoison -c "select urxvt"
Or using the script I use for this purpose:
And finally create a new tmux window with the SSH connection:
tmux new-window -c ~ -n "ssh_connection" ssh $IP