From 3758e4cb455fbf933175f263a1476a224b6cf3af Mon Sep 17 00:00:00 2001 From: Barak Michener Date: Thu, 5 Jul 2018 12:59:28 -0700 Subject: [PATCH] change vimfiler, add remote keybindings for i3 --- .i3/config | 11 +++++++++++ .vimrc | 3 ++- bin/run_terminal | 8 ++++---- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/.i3/config b/.i3/config index 2b3db5c..8c3cb96 100644 --- a/.i3/config +++ b/.i3/config @@ -55,6 +55,7 @@ bindsym $mod+d exec i3-dmenu-desktop --dmenu='rofi -dmenu' bindsym $mod+F12 exec xscreensaver-command -lock bindsym $mod+Shift+y exec xinput-toggle -r yubikey -n -e -t 10 bindsym $mod+Shift+f exec --no-startup-id xmodmap ~/.Xmodmap +bindsym $mod+Shift+s exec xfce4-screenshooter # There also is the (new) i3-dmenu-desktop which only displays applications # shipping a .desktop file. It is a wrapper around dmenu, so you need that # installed. @@ -195,6 +196,16 @@ mode "moveworkspace" { bindsym $mod+t mode "moveworkspace" +mode "goremote" { + bindsym g exec "remmina -c ~/.local/share/remmina/1523485448993.remmina"; mode "default" + bindsym t exec "run_terminal -x ssh -p 2222 barak@rack.0b100.net"; mode "default" + bindsym p exec "run_terminal -x ssh -p 2222 barak@barakmich.com"; mode "default" + bindsym Return mode "default" + bindsym Escape mode "default" +} + +bindsym $mod+Shift+Control+r mode "goremote" + # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) #bar { diff --git a/.vimrc b/.vimrc index dffe5b1..eb001b3 100644 --- a/.vimrc +++ b/.vimrc @@ -567,7 +567,8 @@ endfunction " I don't know how I came up with gt for opening the tree, but it stuck. "nmap gt :NERDTreeToggle -nmap gt :VimFilerExplorer -winwidth=40 -toggle -direction=rightbelow -parent -status -force-hide +"nmap gt :VimFilerExplorer -winwidth=40 -toggle -direction=rightbelow -parent -status -force-hide +nmap gt :VimFiler -status -auto-cd -parent " The same for the TagList, useful for large C files. "nmap gb :TlistToggle nmap gb :TagbarToggle diff --git a/bin/run_terminal b/bin/run_terminal index 3a5df40..9ba6097 100755 --- a/bin/run_terminal +++ b/bin/run_terminal @@ -1,11 +1,11 @@ #!/usr/bin/env bash if [ -n "`which terminator`" ]; then - terminator + terminator $@ elif [ -n "`which gnome-terminal`" ]; then - gnome-terminal + gnome-terminal $@ elif [ -n "`which urxvt`" ]; then - urxvt + urxvt $@ else - xterm + xterm $@ fi