From 44868f49cff1b40f5b9f701ee1834b5b3e37f5dc Mon Sep 17 00:00:00 2001 From: Kevin Mok Date: Mon, 12 Mar 2018 12:01:55 -0400 Subject: [PATCH] Fxn's: Okular (bg), cherry-pick commit (Git) --- aliases/zsh_aliases | 9 +++++---- configs/X1-Carbon/i3/config | 4 ++-- dotfiles/Xresources | 2 +- dotfiles/zshrc | 9 +++------ 4 files changed, 11 insertions(+), 13 deletions(-) diff --git a/aliases/zsh_aliases b/aliases/zsh_aliases index 3254f5c..2e9f44c 100644 --- a/aliases/zsh_aliases +++ b/aliases/zsh_aliases @@ -97,7 +97,7 @@ alias tm="ni $usnp_dir/texmath.snippets" # applications {{{ # alias rg="ranger" -function ok() { okular $1 ; } +function ok() { okular $1 & ; } function chr() { google-chrome $1 ; } function ni() { nvim $1 ; } alias nisw="f ~/.local/share/nvim/swap" @@ -265,7 +265,7 @@ function gpsg() { } alias gps="git push" alias gpsfrc="git push --force" -alias gdwip="git push -d origin wip && git branch -d wip" +alias gdwip="git push -d origin wip && git branch -D wip" alias gclear="git stash clear" # }}} push # @@ -287,6 +287,7 @@ alias crm="mrk README.md" # functions {{{ function gcho() { git checkout $1 ; } function gcln() { git clone $1 ; } +function gchp() { git cherry-pick $1 ; } function gremotes() { git remote set-url --add --push origin $1 @@ -414,8 +415,8 @@ function run() { # }}} compile and run with input file # # temp {{{ # -alias m8="make checkpasswd && ./checkpasswd < passwd.in" -alias m3="make pfact && ./pfact 10" +alias m8="make checkpasswd && ./checkpasswd < passwd.in" +alias m3="make pfact && ./pfact.out 14" alias 35w="c9 3-5_wait.c && ./3-5_wait.out abc a" # }}} temp # diff --git a/configs/X1-Carbon/i3/config b/configs/X1-Carbon/i3/config index 8fbf80a..9d03840 100644 --- a/configs/X1-Carbon/i3/config +++ b/configs/X1-Carbon/i3/config @@ -227,8 +227,8 @@ font pango:Hack 10 # function keys {{{ # # backlight {{{ # -bindsym $mod+Shift+plus exec xbacklight -inc 2 -bindsym $mod+Shift+minus exec xbacklight -dec 2 +bindsym $mod+control+plus exec xbacklight -inc 2 +bindsym $mod+control+minus exec xbacklight -dec 2 # }}} backlight # # connect/disconnect wifi {{{ # diff --git a/dotfiles/Xresources b/dotfiles/Xresources index be1db2a..e0849fc 100644 --- a/dotfiles/Xresources +++ b/dotfiles/Xresources @@ -1,4 +1,4 @@ -URxvt.font: xft:hack:size=12 +URxvt.font: xft:hack:size=14 /* transparency {{{ */ URxvt*inheritPixmap: true diff --git a/dotfiles/zshrc b/dotfiles/zshrc index bcdd0ef..f89fad8 100644 --- a/dotfiles/zshrc +++ b/dotfiles/zshrc @@ -97,6 +97,7 @@ source ~/linux-config/aliases/zsh_aliases if [ "$(whoami)" = "kevin" ]; then export PATH="${PATH}:${HOME}/.local/bin/" (cat ~/.cache/wal/sequences &) + # keyboard delay/rate xset r rate 200 60 fi # NZXT @@ -105,10 +106,6 @@ then xmodmap -e "clear Lock" xmodmap -e "keycode 22 = Caps_Lock" xmodmap -e "keycode 66 = BackSpace" - - # keyboard repeat rate - # gsettings set org.gnome.desktop.peripherals.keyboard delay 25 - # gsettings set org.gnome.desktop.peripherals.keyboard repeat-interval 200 -else - xrandr --dpi 150 +# else + # xrandr --dpi 150 fi