by okbake · 9y ago · 0 comments
Having programs available from anywhere with just a few keystrokes makes everything feel very accessible. Whenever I want to run something I just need to type a few characters of the binaries name to launch it.
I use a similiar set up for ssh, where I pipe the Hosts from my ~/.ssh/config into dmenu and only need to type part of the hostname to connect.
[dmenu] http://tools.suckless.org/dmenu/
My question is: how do you open ssh from dmenu? I can't open terminal applications from dmenu, it should open a terminal automatically, I guess, but it doesn't do anything. Is that controlled by some other Linux configuration? I'm on Ubuntu with i3.
#!/bin/sh
exec xterm -e ssh user@hostname