Browse Source

Update

red-hat-laptop
Kevin Mok 6 years ago
parent
commit
766b4ad8de
  1. 10
      aliases/zsh_aliases
  2. 6
      configs/i3/config
  3. 2
      configs/ranger/bookmarks
  4. 2
      dotfiles/vimrc

10
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 {{{ #

6
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

2
configs/ranger/bookmarks

@ -1 +1 @@
':/home/kevin/Pictures/Backgrounds
':/home/kevin/Pictures/Backgrounds/dim

2
dotfiles/vimrc

@ -199,6 +199,8 @@ nnoremap <leader>z za
" copy next thing to system clipboard
nnoremap <leader>y "+
nnoremap <leader>Y "+Y
" yank entire buffer
nnoremap <leader>yg ggyG
" }}} leader mappings "

Loading…
Cancel
Save