How did I not thought of that before ?

This commit is contained in:
Geoffrey Frogeye 2016-12-09 21:52:34 +01:00
parent 395c21472d
commit 8b69e7c2d5
2 changed files with 3 additions and 1 deletions

View file

@ -37,8 +37,8 @@ bindsym button2 kill
bindsym $mod+F2 exec --no-startup-id ~/.config/i3/dmenu_run bindsym $mod+F2 exec --no-startup-id ~/.config/i3/dmenu_run
bindsym Mod1+F2 exec --no-startup-id ~/.config/i3/dmenu_run bindsym Mod1+F2 exec --no-startup-id ~/.config/i3/dmenu_run
# Password menu
bindsym $mod+c exec --no-startup-id ~/.config/i3/passmenu bindsym $mod+c exec --no-startup-id ~/.config/i3/passmenu
bindsym $mod+asterisk exec --no-startup-id ~/.config/i3/sshmenu
# start program launcher # start program launcher
bindsym $mod+d exec --no-startup-id ~/.config/i3/dmenu_run bindsym $mod+d exec --no-startup-id ~/.config/i3/dmenu_run

2
config/i3/sshmenu Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
xterm -e "ssh $(cat ~/.ssh/config | grep '^Host ' | cut -d ' ' -f 2 | grep -v '*' | sort | $HOME/.config/i3/dmenu_cmd -p 'SSH to ')"