Aliases for ideas folders
Also delete into system clipboard mapping (Vim).
This commit is contained in:
@@ -69,8 +69,6 @@ function aptr() { sudo apt remove $1 ; }
|
|||||||
|
|
||||||
# config files {{{ #
|
# config files {{{ #
|
||||||
alias lc="f ~/linux-config/"
|
alias lc="f ~/linux-config/"
|
||||||
alias lci="f ~/Documents/coding/ideas/"
|
|
||||||
alias vli="ni ~/Documents/coding/ideas/ideas.md"
|
|
||||||
alias lca="f ~/linux-config/aliases"
|
alias lca="f ~/linux-config/aliases"
|
||||||
|
|
||||||
alias vv="ni ~/.vimrc"
|
alias vv="ni ~/.vimrc"
|
||||||
@@ -248,6 +246,7 @@ alias gs="git status -u"
|
|||||||
alias gchm="git checkout master"
|
alias gchm="git checkout master"
|
||||||
alias gchnw="git checkout -b wip"
|
alias gchnw="git checkout -b wip"
|
||||||
alias gchw="git checkout wip"
|
alias gchw="git checkout wip"
|
||||||
|
alias gheadm1="git reset --hard HEAD~1"
|
||||||
|
|
||||||
# push {{{ #
|
# push {{{ #
|
||||||
alias egc="nvim -c \"set syn=gitcommit\" -c \"set tw=72\" commit-msg.txt"
|
alias egc="nvim -c \"set syn=gitcommit\" -c \"set tw=72\" commit-msg.txt"
|
||||||
@@ -259,7 +258,7 @@ alias gcam="git commit --amend"
|
|||||||
# todo: fix
|
# todo: fix
|
||||||
function gcm(){ echo git commit -m \""$1"\" ; }
|
function gcm(){ echo git commit -m \""$1"\" ; }
|
||||||
|
|
||||||
function gpsgst() {
|
function gpsg() {
|
||||||
git add .
|
git add .
|
||||||
git commit -m '.'
|
git commit -m '.'
|
||||||
git push
|
git push
|
||||||
@@ -321,13 +320,25 @@ function gpla() {
|
|||||||
# }}} git #
|
# }}} git #
|
||||||
|
|
||||||
# coding projs {{{ #
|
# coding projs {{{ #
|
||||||
cd_coding_dir="f ~/Documents/coding"
|
coding_dir="~/Documents/coding"
|
||||||
alias ans="f /usr/local/android-studio/bin && ./studio.sh"
|
cd_coding_dir="f $coding_dir"
|
||||||
alias cdn="$cd_coding_dir"
|
alias cdn="$cd_coding_dir"
|
||||||
|
|
||||||
|
# ideas
|
||||||
|
ideas_dir="$coding_dir""/ideas"
|
||||||
|
alias ids="f $ideas_dir"
|
||||||
|
alias lci="f $ideas_dir/general"
|
||||||
|
alias vli="ni $ideas_dir/ideas.md"
|
||||||
|
alias fyn="f $ideas_dir/yes-no"
|
||||||
|
|
||||||
|
alias ans="f /usr/local/android-studio/bin && ./studio.sh"
|
||||||
|
# trapbot {{{ #
|
||||||
alias tb="$cd_coding_dir/trapbot"
|
alias tb="$cd_coding_dir/trapbot"
|
||||||
alias vtb="$cd_coding_dir/trapbot && ni scan_reddit.py"
|
alias vtb="$cd_coding_dir/trapbot && ni scan_reddit.py"
|
||||||
alias ptb="python scan_reddit.py"
|
alias ptb="python scan_reddit.py"
|
||||||
alias rtb="$cd_coding_dir/trapbot && python scan_reddit.py"
|
alias rtb="$cd_coding_dir/trapbot && python scan_reddit.py"
|
||||||
|
# }}} trapbot #
|
||||||
|
|
||||||
# }}} coding projs #
|
# }}} coding projs #
|
||||||
|
|
||||||
# school {{{ #
|
# school {{{ #
|
||||||
@@ -403,7 +414,7 @@ function run() {
|
|||||||
# }}} compile and run with input file #
|
# }}} compile and run with input file #
|
||||||
|
|
||||||
# temp {{{ #
|
# temp {{{ #
|
||||||
alias m7="make childcreates && ./childcreates 3"
|
alias m8="make checkpasswd && ./checkpasswd < passwd.in"
|
||||||
alias m3="make pfact && ./pfact 10"
|
alias m3="make pfact && ./pfact 10"
|
||||||
alias 35w="c9 3-5_wait.c && ./3-5_wait.out abc a"
|
alias 35w="c9 3-5_wait.c && ./3-5_wait.out abc a"
|
||||||
# }}} temp #
|
# }}} temp #
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ exec redshift -O 4000
|
|||||||
exec_always ~/.local/bin/wal -i "$HOME/Pictures/Backgrounds/"
|
exec_always ~/.local/bin/wal -i "$HOME/Pictures/Backgrounds/"
|
||||||
# exec_always ~/.local/bin/wal -i "$HOME/Pictures/Backgrounds/retro-mountains-pink.jpg"
|
# exec_always ~/.local/bin/wal -i "$HOME/Pictures/Backgrounds/retro-mountains-pink.jpg"
|
||||||
exec imwheel
|
exec imwheel
|
||||||
exec --no-startup-id i3-msg 'workspace 1 ; exec $def_term'
|
# 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 2 ; exec $def_term'
|
||||||
exec --no-startup-id i3-msg 'workspace 3 ; exec google-chrome'
|
exec --no-startup-id i3-msg 'workspace 3 ; exec google-chrome'
|
||||||
# }}} startup #
|
# }}} startup #
|
||||||
|
|
||||||
@@ -102,7 +102,7 @@ bindsym $mod+s layout stacking
|
|||||||
bindsym $mod+t layout tabbed
|
bindsym $mod+t layout tabbed
|
||||||
bindsym $mod+e layout toggle split
|
bindsym $mod+e layout toggle split
|
||||||
|
|
||||||
# toggle tiling / floating
|
# toggle tiling /floating
|
||||||
bindsym $mod+Shift+space floating toggle
|
bindsym $mod+Shift+space floating toggle
|
||||||
|
|
||||||
# change focus between tiling / floating windows
|
# change focus between tiling / floating windows
|
||||||
@@ -121,11 +121,11 @@ set $samsung "DVI-I-1"
|
|||||||
set $benq "HDMI-0"
|
set $benq "HDMI-0"
|
||||||
|
|
||||||
set $ws1 "1 "
|
set $ws1 "1 "
|
||||||
workspace $ws1 output $samsung
|
workspace $ws1 output $benq
|
||||||
bindsym $mod+F1 workspace $ws1; exec $def_term
|
bindsym $mod+F1 workspace $ws1; exec $def_term
|
||||||
|
|
||||||
set $ws2 "2 "
|
set $ws2 "2 "
|
||||||
workspace $ws2 output $benq
|
workspace $ws2 output $samsung
|
||||||
bindsym $mod+F2 workspace $ws2; exec $def_term
|
bindsym $mod+F2 workspace $ws2; exec $def_term
|
||||||
|
|
||||||
set $ws3 "3 "
|
set $ws3 "3 "
|
||||||
|
|||||||
@@ -142,6 +142,8 @@ nnoremap <C-w> <C-W>|
|
|||||||
let mapleader="\<Space>"
|
let mapleader="\<Space>"
|
||||||
" replace vim-commentary Markdown comments with HTML
|
" replace vim-commentary Markdown comments with HTML
|
||||||
nnoremap <leader>cmt :%s/>\(.*\)>/<!---\1-->/g<CR>
|
nnoremap <leader>cmt :%s/>\(.*\)>/<!---\1-->/g<CR>
|
||||||
|
" delete line into system clipboard
|
||||||
|
nnoremap <leader>D "+dd
|
||||||
" reload file
|
" reload file
|
||||||
nnoremap <leader>e :e<CR>
|
nnoremap <leader>e :e<CR>
|
||||||
" reload folds
|
" reload folds
|
||||||
|
|||||||
@@ -97,6 +97,7 @@ source ~/linux-config/aliases/zsh_aliases
|
|||||||
if [ "$(whoami)" = "kevin" ]; then
|
if [ "$(whoami)" = "kevin" ]; then
|
||||||
export PATH="${PATH}:${HOME}/.local/bin/"
|
export PATH="${PATH}:${HOME}/.local/bin/"
|
||||||
(cat ~/.cache/wal/sequences &)
|
(cat ~/.cache/wal/sequences &)
|
||||||
|
xset r rate 200 60
|
||||||
fi
|
fi
|
||||||
# NZXT
|
# NZXT
|
||||||
if [ "$(hostname)" = "NZXT" ];
|
if [ "$(hostname)" = "NZXT" ];
|
||||||
@@ -106,9 +107,8 @@ then
|
|||||||
xmodmap -e "keycode 66 = BackSpace"
|
xmodmap -e "keycode 66 = BackSpace"
|
||||||
|
|
||||||
# keyboard repeat rate
|
# keyboard repeat rate
|
||||||
gsettings set org.gnome.desktop.peripherals.keyboard delay 25
|
# gsettings set org.gnome.desktop.peripherals.keyboard delay 25
|
||||||
gsettings set org.gnome.desktop.peripherals.keyboard repeat-interval 200
|
# gsettings set org.gnome.desktop.peripherals.keyboard repeat-interval 200
|
||||||
else
|
else
|
||||||
xrandr --dpi 150
|
xrandr --dpi 150
|
||||||
xset r rate 200 60
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user