From 60930b0206684b5f6e2b3687fba585baca5914ce Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Mon, 2 Jul 2018 22:22:26 -0400 Subject: [PATCH] Changes --- skel/.i3/config | 14 ++++++++++++++ skel/.vimrc | 2 ++ skel/.zshrc | 4 ++-- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/skel/.i3/config b/skel/.i3/config index f4e19db..d4ace6f 100644 --- a/skel/.i3/config +++ b/skel/.i3/config @@ -117,6 +117,8 @@ bindsym $mod+r mode "resize" bindsym $mod+u focus parent bindsym $mod+shift+u focus child bindsym --release $mod+n exec "~/.i3/run.sh paste" +# Reload i3 +bindsym $mod+shift+r reload;exec notify-send -a i3 Reloaded # Exit/restart i3 bindsym $mod+q restart #bindsym $mod+shift+q exec "i3-nagbar -m 'NMRestart/Shutdown/Restart/Logout' -t warning -b NMRestart 'nmcli radio wifi off;sleep 1;nmcli radio wifi on' -b Shutdown 'sudo /sbin/poweroff' -b Restart 'sudo /sbin/shutdown -r now' -b Logout 'i3-msg exit' -b Sleep 'amixer set Master 0% mute;slock&until echo mem|sudo tee /sys/power/state>/dev/null;do sleep 1;done;sleep 4;nmcli radio wifi off;sleep 3;nmcli radio wifi on'" @@ -182,6 +184,18 @@ mode "resize" { bindsym Escape mode "default" } +# Minecraft mode +mode "minecraft" { + bindsym $mod+r exec "xdotool mousedown 3" + bindsym $mod+shift+r exec "xdotool mouseup 3";mode "default" + bindsym $mod+d exec "xdotool mousedown 1" + bindsym $mod+shift+d exec "xdotool mouseup 1";mode "default" + bindsym $mod+s exec "sleep 1;xdotool keydown Shift_R;sleep 1;xdotool mousedown 3" + bindsym $mod+shift+s exec "xdotool keyup Shift_R;xdotool mouseup 3";mode "default" + bindsym Return mode "default" + bindsym Escape mode "default" +} +bindsym $mod+m mode "minecraft" # Startup # Monitor setup diff --git a/skel/.vimrc b/skel/.vimrc index fd5600f..fce7dfe 100644 --- a/skel/.vimrc +++ b/skel/.vimrc @@ -281,6 +281,8 @@ endif "Automatic :set paste funcationality | https://github.com/ConradIrwin/vim-bracketed-paste "Plug 'https://gitea.austenwares.com/vim/HiCursorWords' "Highlight word under cursor automatically | http://www.vim.org/scripts/script.php?script_id=4306 + "Plug 'https://github.com/chrisbra/NrrwRgn' + "Narrow region | https://github.com/chrisbra/NrrwRgn " } " Unused { "Plug 'https://gitea.austenwares.com/vim/mirror.vim' diff --git a/skel/.zshrc b/skel/.zshrc index cfd9e18..240141d 100644 --- a/skel/.zshrc +++ b/skel/.zshrc @@ -330,7 +330,7 @@ fi if ex git; then alias g="git" fi -alias stdns="sudo sh -c 'echo nameserver 8.8.8.8 > /etc/resolv.conf'" +alias stdns="sudo sh -c 'echo nameserver 1.1.1.1 > /etc/resolv.conf'" alias fvim="vim -u NONE +\"so ~/.vim/plugged/flappyvird-vim/plugin/flappyvird.vim\" +\"so ~/.vim/plugged/flappyvird-vim/autoload/flappyvird.vim\" +\":FlappyVird\" +\":q\"" alias fk='k `fzf --no-mouse -m -1 -x`' #alias susp="sudo true&&((slock;sleep 2;nmcli radio wifi off;nmcli radio wifi on)&echo mem | sudo tee /sys/power/state >/dev/null);sudo -k" @@ -459,7 +459,7 @@ dnstest(){ echo "Testing DNS:" dig google.com echo "Testing ping:" - ping -c 2 8.8.8.8 + ping -c 2 1.1.1.1 echo "Testing IP curl:" curl -L 178.33.250.62 echo