From 766b4ad8dee6211cccc5a8e6b4ea280c568daafb Mon Sep 17 00:00:00 2001 From: Kevin Mok Date: Fri, 7 Sep 2018 08:38:33 -0400 Subject: [PATCH] Update --- aliases/zsh_aliases | 10 +++++++--- configs/i3/config | 6 +++++- configs/ranger/bookmarks | 2 +- dotfiles/vimrc | 2 ++ 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/aliases/zsh_aliases b/aliases/zsh_aliases index fdf55e3..68827d5 100644 --- a/aliases/zsh_aliases +++ b/aliases/zsh_aliases @@ -25,7 +25,7 @@ alias nf="neofetch" alias rur="xrdb ~/.Xresources" function gvx() { urxvt --help 2>&1 | grep $1 ; } # list file sizes in megabytes with depth 1 -alias dum="du -d 1 -B M" +alias dum="sudo du -d 1 -B M" alias grbm="sudo grub-mkconfig -o /boot/grub/grub.cfg" @@ -67,6 +67,7 @@ alias fd="f ~/Downloads" function mvd() { mv $1 ~/Downloads ; } alias fds="f ~/Downloads/sch" alias doc="f ~/Documents" +alias wo="f ~/Documents/workout-logs/9" alias cfg="f ~/.config" # }}} directory-related # @@ -153,6 +154,7 @@ function auc() { xdotool click --repeat 1000000 --delay $1 1 ; } # alias auc3="xdotool click --repeat 1000000 --delay 300 1" # alias auc5="xdotool click --repeat 1000000 --delay 500 1" # alias kauc="pkill -f xdotool" +alias rsl="java -jar ~/Downloads/RuneLite.jar" alias vbn="cvlc --loop --alsa-gain 1 ~/Music/brown-noise.mp3" alias vlm="alsamixer -c 0" @@ -160,7 +162,7 @@ alias vlmh="alsamixer -c 3" alias rmsw="rm .sw*" # function rs(){ redshift -O $(echo "scale=2;$1*1000" | bc) ; } -function rs(){ redshift -O $1 ; } +function rds(){ redshift -O $1 ; } alias rx="redshift -x" # python related {{{ # @@ -214,6 +216,7 @@ function psg() { git push } alias gps="git push" +alias gpsi="git push --set-upstream origin master" alias gpsf="git push --force" alias gclear="git stash clear" # }}} push # @@ -276,8 +279,9 @@ alias cdn="$cd_coding_dir" alias ans="f /usr/local/android-studio/bin && ./studio.sh" alias gx="ni ~/Documents/csgo-config/autoexec.cfg" -alias jn="ni ~/Documents/journal/6.md" +alias jn="ni ~/Documents/journal/9.md" alias jnt="ni ~/Documents/journal/todo.md" +alias rs="f ~/Documents/runescape" # ideas {{{ # diff --git a/configs/i3/config b/configs/i3/config index b157dff..bd51bd2 100644 --- a/configs/i3/config +++ b/configs/i3/config @@ -1,6 +1,7 @@ # startup {{{ # set $browser "firefox" set $def_term "urxvt" +set $runelite "java -jar ~/Downloads/RuneLite.jar" exec redshift -O 3000 # random bg exec wal -i "$HOME/Pictures/Backgrounds/dim" @@ -9,6 +10,7 @@ exec --no-startup-id start-pulseaudio-x11 # exec --no-startup-id i3-msg 'workspace 1 ; exec $def_term' exec --no-startup-id i3-msg 'workspace 2 ; exec $def_term' exec --no-startup-id i3-msg 'workspace 3 ; exec $browser' +# exec --no-startup-id i3-msg 'workspace 5 ; exec $runelite' exec_always --no-startup-id numlockx on # }}} startup # @@ -31,7 +33,8 @@ bindsym Mod4+m exec okular $sch_dir/calc-textbook.pdf bindsym Mod4+n exec nemo bindsym Mod4+p workspace $ws4; exec pgadmin3 # bindsym Mod4+p exec pycharm -bindsym Mod4+r exec urxvt -e ranger +# bindsym Mod4+r exec urxvt -e ranger +bindsym Mod4+r exec $runelite bindsym Print exec ksnapshot # }}} app shortcuts # @@ -141,6 +144,7 @@ bindsym $mod+F3 workspace $ws3; exec $browser set $ws4 "4 " workspace $ws4 output $samsung +bindsym $mod+F4 workspace $ws4; exec $def_term set $ws5 "5 " workspace $ws5 output $benq diff --git a/configs/ranger/bookmarks b/configs/ranger/bookmarks index c3e66fd..56db7b5 100644 --- a/configs/ranger/bookmarks +++ b/configs/ranger/bookmarks @@ -1 +1 @@ -':/home/kevin/Pictures/Backgrounds +':/home/kevin/Pictures/Backgrounds/dim diff --git a/dotfiles/vimrc b/dotfiles/vimrc index 2691c0e..212006c 100644 --- a/dotfiles/vimrc +++ b/dotfiles/vimrc @@ -199,6 +199,8 @@ nnoremap z za " copy next thing to system clipboard nnoremap y "+ nnoremap Y "+Y +" yank entire buffer +nnoremap yg ggyG " }}} leader mappings "