From b7f03054d4ecc1226081686ca24df7228eb2012e Mon Sep 17 00:00:00 2001 From: Barak Michener Date: Sun, 16 Jun 2019 19:24:06 -0700 Subject: [PATCH] small update --- .i3/config | 11 +++++++++++ .zshrc | 6 ++++++ bin/run_terminal | 12 ++++++------ 3 files changed, 23 insertions(+), 6 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/.zshrc b/.zshrc index ff7bdb9..f941bb1 100644 --- a/.zshrc +++ b/.zshrc @@ -86,8 +86,14 @@ fi if [ -f /usr/local/bin/virtualenvwrapper_lazy.sh ]; then source /usr/local/bin/virtualenvwrapper_lazy.sh +else + if [ -f /usr/share/virtualenvwrapper/virtualenvwrapper_lazy.sh ]; then + source /usr/share/virtualenvwrapper/virtualenvwrapper_lazy.sh + fi fi + + fasd_cache="$HOME/.fasd-init-zsh" if [ "$(command -v fasd)" -nt "$fasd_cache" -o ! -s "$fasd_cache" ]; then fasd --init posix-alias zsh-hook zsh-ccomp zsh-ccomp-install zsh-wcomp zsh-wcompinstall >| "$fasd_cache" diff --git a/bin/run_terminal b/bin/run_terminal index 3a5df40..de6d438 100755 --- a/bin/run_terminal +++ b/bin/run_terminal @@ -1,11 +1,11 @@ #!/usr/bin/env bash -if [ -n "`which terminator`" ]; then - terminator -elif [ -n "`which gnome-terminal`" ]; then - gnome-terminal +if [ -n "`which gnome-terminal`" ]; then + gnome-terminal $@ +elif [ -n "`which terminator`" ]; then + terminator $@ elif [ -n "`which urxvt`" ]; then - urxvt + urxvt $@ else - xterm + xterm $@ fi