Browse Source

sync-shortcuts: fix ranger mv/cp

Split Arch packages into main and AUR.
red-hat-laptop
Kevin Mok 6 years ago
parent
commit
87f068cf4b
Signed by: Kevin-Mok GPG Key ID: AEA75288DC135CF5
  1. 22
      aliases/key_aliases
  2. 7
      fish/.config/fish/config.fish
  3. 5
      fish/.config/fish/functions/git-mult-remotes.fish
  4. 4
      i3/.config/i3/config
  5. 4
      scripts/sync-shortcuts
  6. 6
      txt/key_dirs.txt
  7. 3
      txt/key_files.txt
  8. 11
      txt/manual-latex-pkgs.txt
  9. 45
      txt/nzxt-aur.txt
  10. 58
      txt/nzxt-pkgs.txt
  11. 17
      vim/.vimrc
  12. 0
      zathura/.config/zathura/zathurarc

22
aliases/key_aliases

@ -8,7 +8,7 @@ fi "fish"
# reload urxvt # reload urxvt
ru "xrdb ~/.Xresources" ru "xrdb ~/.Xresources"
# list file sizes in megabytes with depth 1 # list file sizes in megabytes with depth 1
dum "sudo du -d 1 -B M"
duh "sudo du -d 1 -h"
tl "tldr" tl "tldr"
nvt "nvidia-settings --assign CurrentMetaMode='DVI-I-1: nvidia-auto-select +0+0 {ForceCompositionPipeline=On}, HDMI-0: nvidia-auto-select +3840+0 {ForceCompositionPipeline=On}'" nvt "nvidia-settings --assign CurrentMetaMode='DVI-I-1: nvidia-auto-select +0+0 {ForceCompositionPipeline=On}, HDMI-0: nvidia-auto-select +3840+0 {ForceCompositionPipeline=On}'"
@ -16,6 +16,8 @@ nvt "nvidia-settings --assign CurrentMetaMode='DVI-I-1: nvidia-auto-select +0+0
vgb "sni /etc/default/grub" vgb "sni /etc/default/grub"
mkgb "sudo grub-mkconfig -o /boot/grub/grub.cfg" mkgb "sudo grub-mkconfig -o /boot/grub/grub.cfg"
bt "bat"
bta "bat *"
grep "grep --color=auto -n" grep "grep --color=auto -n"
grr "grep -r" grr "grep -r"
# pk "pkill -f" # pk "pkill -f"
@ -32,6 +34,7 @@ ctld "sudo systemctl disable"
ctla "sudo systemctl start" ctla "sudo systemctl start"
ctls "sudo systemctl stop" ctls "sudo systemctl stop"
ctlt "sudo systemctl status" ctlt "sudo systemctl status"
ctltd "sudo systemctl status dhcpcd"
ctlr "sudo systemctl restart" ctlr "sudo systemctl restart"
# }}} systemctl # # }}} systemctl #
@ -77,8 +80,8 @@ s "systemctl suspend"
sd "sudo shutdown 0" sd "sudo shutdown 0"
reb "sudo shutdown -r 0" reb "sudo shutdown -r 0"
lo "i3-msg exit" lo "i3-msg exit"
x "xmodmap ~/.Xmodmap && xset r rate 200 70"
X "xmodmap ~/.Xmodmap && xset r rate 200 70"
x "xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE"
X "xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE"
# }}} power options # # }}} power options #
@ -94,11 +97,11 @@ vlh "alsamixer -c 2"
# pacman {{{ # # pacman {{{ #
pc "sudo pacman -S" pc "sudo pacman -S"
pcr "sudo pacman -Rs"
pcr "sudo pacman -Rns"
pcud "sudo pacman -Sy" pcud "sudo pacman -Sy"
pcug "sudo pacman -Syu" pcug "sudo pacman -Syu"
pcv "sudo pacman -Q" pcv "sudo pacman -Q"
xpc "pacman -Qqe > ~/linux-config/txt/nzxt-pkgs.txt"
xpc "pacman -Qqne > ~/linux-config/txt/nzxt-pkgs.txt && pacman -Qqme > ~/linux-config/txt/nzxt-aur.txt "
# tri "trizen -S --noconfirm" # tri "trizen -S --noconfirm"
tri "trizen -S --noedit" tri "trizen -S --noedit"
@ -199,6 +202,7 @@ g "git"
# branch {{{ # # branch {{{ #
gb "git branch" gb "git branch"
gbd "git branch -D"
gba "git branch --no-merged && echo '' && git branch --merged" gba "git branch --no-merged && echo '' && git branch --merged"
gbu "git branch --no-merged" gbu "git branch --no-merged"
gbm "git branch --merged" gbm "git branch --merged"
@ -225,8 +229,10 @@ grmfc "git rm -f --cached"
# diff/log {{{ # # diff/log {{{ #
gd "git diff -w" gd "git diff -w"
gdc "git diff --cached -w" gdc "git diff --cached -w"
gdh "git diff --cached -w HEAD~1"
gds "git diff --stat" gds "git diff --stat"
gdt "git difftool --tool=vimdiff"
gdv "git difftool -w --tool=vimdiff"
gdvc "git difftool -w --cached --tool=vimdiff"
gl "git log" gl "git log"
gsl "git shortlog" gsl "git shortlog"
# }}} diff/log # # }}} diff/log #
@ -261,6 +267,7 @@ gpsf "git push --force"
gclear "git stash clear" gclear "git stash clear"
gpl "git pull --rebase" gpl "git pull --rebase"
grba "git rebase --abort"
grbc "git rebase --continue" grbc "git rebase --continue"
# }}} push # # }}} push #
@ -371,6 +378,7 @@ hl "valgrind --tool=helgrind ./carsim light 10 20"
# 309 # 309
0ht "cd ~/school/309-proj && python3 -m http.server" 0ht "cd ~/school/309-proj && python3 -m http.server"
v0c "cd /home/kevin/school/309-proj/css && nvim main.scss"
wl0 "watson log --all --project=309 --tag=project"
wr0 "watson report --all --project=309 --tag=project"
# }}} school # # }}} school #

7
fish/.config/fish/config.fish

@ -33,6 +33,11 @@ source $spv_dir/src/api-keys.sh
# (ruby -e 'print Gem.user_dir')/bin # (ruby -e 'print Gem.user_dir')/bin
set -x PATH $PATH /home/kevin/linux-config/scripts /home/kevin/go/bin set -x PATH $PATH /home/kevin/linux-config/scripts /home/kevin/go/bin
set -x PASSWORD_STORE_CLIP_TIME 120 set -x PASSWORD_STORE_CLIP_TIME 120
set -xU XSET_RATE 90
set -xU XSET_DELAY 200
# causes xmodmap to have issues when opening terminal sometimes
# xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE
# xset r rate $XSET_DELAY $XSET_RATE
# fxn abbr's # fxn abbr's
abbr ag "grep-aliases" abbr ag "grep-aliases"
@ -43,10 +48,12 @@ abbr ev "evince-silent"
abbr gcamp "git-amend-push" abbr gcamp "git-amend-push"
abbr gdf "git-diff-files" abbr gdf "git-diff-files"
abbr gpsmt "git-push-multiple" abbr gpsmt "git-push-multiple"
abbr gremotes "git-mult-remotes"
abbr grmb "git-delete-branch" abbr grmb "git-delete-branch"
# }}} git # # }}} git #
abbr hs "scan-history" abbr hs "scan-history"
abbr hst "$EDITOR ~/.local/share/fish/fish_history"
abbr ut "unix-timestamp" abbr ut "unix-timestamp"
abbr z "zathura-silent" abbr z "zathura-silent"

5
fish/.config/fish/functions/git-mult-remotes.fish

@ -0,0 +1,5 @@
function git-mult-remotes
git remote set-url --add --push origin $argv[1]
and git remote set-url --add --push origin $argv[2]
and git remote -v
end

4
i3/.config/i3/config

@ -10,7 +10,7 @@ exec compton
exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/dim/non-editing") exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/dim/non-editing")
exec imwheel exec imwheel
exec xmodmap ~/.Xmodmap exec xmodmap ~/.Xmodmap
exec xset r rate 200 70
exec xset r rate $XSET_DELAY $XSET_RATE
exec xrdb ~/.Xresources exec xrdb ~/.Xresources
exec --no-startup-id dunst exec --no-startup-id dunst
exec --no-startup-id start-pulseaudio-x11 exec --no-startup-id start-pulseaudio-x11
@ -55,7 +55,7 @@ bindsym Mod4+w exec notify-send "watson status" "$(watson status)"
bindsym Mod4+$mod+w exec notify-send "watson stop" "$(watson status && watson stop)" bindsym Mod4+$mod+w exec notify-send "watson stop" "$(watson status && watson stop)"
bindsym control+$mod+w exec urxvt -e nvim /home/kevin/.config/watson/state.tmp bindsym control+$mod+w exec urxvt -e nvim /home/kevin/.config/watson/state.tmp
# bindsym Mod4+x exec $swex # bindsym Mod4+x exec $swex
bindsym Mod4+x exec xmodmap ~/.Xmodmap && xset r rate 200 70
bindsym Mod4+x exec xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE
bindsym Mod4+z exec cliqz bindsym Mod4+z exec cliqz
# bindsym Print exec gscreenshot # bindsym Print exec gscreenshot
bindsym Print --release exec "scrot -s /tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'" bindsym Print --release exec "scrot -s /tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'"

4
scripts/sync-shortcuts

@ -45,8 +45,8 @@ sed "s/\s*#.*$//;/^\s*$/d" "$key_dirs" | tee \
>(awk '{print "abbr", $1, "\"cd " $2 "\""}' >> "$fish_abbr") \ >(awk '{print "abbr", $1, "\"cd " $2 "\""}' >> "$fish_abbr") \
| awk '{print "map f"$1, "cd", $2; | awk '{print "map f"$1, "cd", $2;
print "map t"$1, "tab_new", $2; print "map t"$1, "tab_new", $2;
print "map m"$1, "shell mv -v", $2;
print "map Y"$1, "shell cp -rv", $2;
print "map m"$1, "shell mv -v %f", $2;
print "map Y"$1, "shell cp -rv %f", $2;
}' >> "$ranger_mappings" }' >> "$ranger_mappings"
sed "s/\s*#.*$//;/^\s*$/d" "$key_files" | tee \ sed "s/\s*#.*$//;/^\s*$/d" "$key_files" | tee \

6
txt/key_dirs.txt

@ -41,13 +41,17 @@ wo /home/kevin/Documents/workout-logs/11
# sch {{{ * # sch {{{ *
# 309
sc /home/kevin/school sc /home/kevin/school
0c /home/kevin/school/309-proj/css 0c /home/kevin/school/309-proj/css
0d /home/kevin/school/309 0d /home/kevin/school/309
0p /home/kevin/school/309-proj 0p /home/kevin/school/309-proj
e2 /home/kevin/school/309/e2 e2 /home/kevin/school/309/e2
# 369
6 /home/kevin/school/369 6 /home/kevin/school/369
a2 /home/kevin/school/369/a2/a2
a3 /home/kevin/school/369/a3/a3
hp /home/kevin/school/hps hp /home/kevin/school/hps
lt /home/kevin/school/latex-notes lt /home/kevin/school/latex-notes

3
txt/key_files.txt

@ -39,10 +39,11 @@ wt /home/kevin/.config/watson/state.tmp
# sch {{{ * # sch {{{ *
0c /home/kevin/school/309-proj/sass/main.scss
0h /home/kevin/school/309-proj/index.html 0h /home/kevin/school/309-proj/index.html
0m /home/kevin/school/309-proj/js/main.js 0m /home/kevin/school/309-proj/js/main.js
0f /home/kevin/school/309-proj/js/food.js 0f /home/kevin/school/309-proj/js/food.js
0s /home/kevin/school/309-proj/js/stores.js 0s /home/kevin/school/309-proj/js/stores.js
0k /home/kevin/school/309-proj/txt/kevin.md
0k /home/kevin/school/309-proj/json/kevin.md
# }}} sch * # }}} sch *

11
txt/manual-latex-pkgs.txt

@ -1,11 +0,0 @@
algorithm
algorithmicx
enumitem
hyperref
numprint
pgfplots
tkz-base
tkz-euclide
# manual
gensymb

45
txt/nzxt-aur.txt

@ -0,0 +1,45 @@
bear
browserpass
chromium-widevine
cliqz
discord
dragon-drag-and-drop-git
ffcast
htop-vim-git
i3blocks-git
linux-kevin
linux-kevin-headers
lua-cjson
nx3-all
peaclock
pipes.sh
pycp
qdirstat
riot-desktop-git
rxvt-unicode-pixbuf
sc-im
spotify
spotify-now-git
st
steamos-xpad-dkms
systemd-numlockontty
texlive-local-algorithmicx
texlive-local-algorithms
texlive-local-enumitem
texlive-local-hyperref
texlive-local-ifmtarg
texlive-local-multirow
texlive-local-numprint
texlive-local-pgfplots
texlive-local-tkz-base
texlive-local-tkz-euclide
texlive-local-xifthen
texlive-localmanager-git
tor-browser
trizen
ttf-emojione
watson
weechat-vimode-git
wego
xboxdrv
yad

58
txt/nzxt-pkgs.txt

@ -1,19 +1,18 @@
alsa-utils alsa-utils
apache
arch-install-scripts arch-install-scripts
asp asp
autoconf autoconf
automake automake
bash bash
bat
bc bc
bison bison
bookworm bookworm
broadcom-wl broadcom-wl
browserpass
bzip2 bzip2
certbot certbot
chromium chromium
chromium-widevine
cliqz
cloc cloc
cmake cmake
cmatrix cmatrix
@ -25,15 +24,16 @@ device-mapper
dhcpcd dhcpcd
dialog dialog
diffutils diffutils
discord
dmenu dmenu
dunst
e2fsprogs e2fsprogs
electrum electrum
encfs
evince evince
evolution evolution
fakeroot fakeroot
fd
feh feh
ffcast
file file
filesystem filesystem
findutils findutils
@ -52,9 +52,8 @@ glibc
grep grep
grub grub
gzip gzip
htop-vim-git
hugo
i3-gaps i3-gaps
i3blocks-git
i3status i3status
imv imv
imwheel imwheel
@ -69,12 +68,10 @@ licenses
linux linux
linux-firmware linux-firmware
linux-headers linux-headers
linux-kevin
linux-kevin-headers
logrotate logrotate
lolcat lolcat
lsd
lsof lsof
lua-cjson
lutris lutris
lvm2 lvm2
lxappearance lxappearance
@ -82,108 +79,93 @@ make
man-db man-db
man-pages man-pages
mdadm mdadm
meld
mpv mpv
nano nano
neofetch neofetch
neomutt neomutt
neovim neovim
netctl netctl
nnn
noto-fonts noto-fonts
ntfs-3g ntfs-3g
ntp ntp
numlockx numlockx
nvidia-dkms nvidia-dkms
nvidia-settings
openssh openssh
os-prober os-prober
pacman pacman
pacman-contrib pacman-contrib
pandoc
pass pass
patch patch
pciutils pciutils
pcmanfm pcmanfm
pdfgrep pdfgrep
peaclock
peek peek
perl perl
perl-image-exiftool
pgadmin4 pgadmin4
pipes.sh
pkgconf pkgconf
postgresql postgresql
procps-ng procps-ng
psensor psensor
psmisc psmisc
pulseaudio pulseaudio
pycp
python-dbus python-dbus
python-pip python-pip
python-pywal python-pywal
python-setuptools python-setuptools
qdirstat
qrencode qrencode
ranger ranger
redshift redshift
reiserfsprogs reiserfsprogs
ripgrep
rsync rsync
rxvt-unicode-pixbuf
s-nail s-nail
scrot scrot
sed sed
shadow shadow
shellcheck shellcheck
spotify
spotify-now-git
sqlitebrowser sqlitebrowser
st
sshpass
steam steam
steam-native-runtime steam-native-runtime
steamos-xpad-dkms
stow stow
sudo sudo
surf surf
sxiv sxiv
sysfsutils sysfsutils
sysstat sysstat
systemd-numlockontty
systemd-sysvcompat systemd-sysvcompat
tar tar
texinfo texinfo
texlive-core texlive-core
texlive-local-algorithmicx
texlive-local-algorithms
texlive-local-enumitem
texlive-local-hyperref
texlive-local-multirow
texlive-local-numprint
texlive-local-pgfplots
texlive-local-tkz-base
texlive-local-tkz-euclide
texlive-localmanager-git
the_silver_searcher the_silver_searcher
tidy
tmux tmux
tor tor
tor-browser
transmission-gtk transmission-gtk
trizen
ttf-dejavu ttf-dejavu
ttf-emojione
ttf-font-awesome
ttf-ubuntu-font-family ttf-ubuntu-font-family
udisks2 udisks2
unzip unzip
usbutils usbutils
util-linux util-linux
valgrind
vi vi
vim
virtualbox virtualbox
vlc vlc
w3m w3m
watson
weechat-vimode-git
wego
which which
wine wine
wireless_tools wireless_tools
wkhtmltopdf
wpa_actiond wpa_actiond
wpa_supplicant wpa_supplicant
xboxdrv
xclip xclip
xf86-input-evdev xf86-input-evdev
xf86-input-keyboard xf86-input-keyboard
@ -236,7 +218,7 @@ xorg-xvinfo
xorg-xwd xorg-xwd
xorg-xwininfo xorg-xwininfo
xorg-xwud xorg-xwud
yad
youtube-dl
youtube-viewer youtube-viewer
zathura zathura
zathura-pdf-mupdf zathura-pdf-mupdf

17
vim/.vimrc

@ -25,6 +25,7 @@ set linespace=5
" set cursorline " set cursorline
" }}} cursor indicator " " }}} cursor indicator "
set diffopt=filler,context:3
" set timeoutlen=500 " set timeoutlen=500
set timeoutlen=350 set timeoutlen=350
@ -64,11 +65,6 @@ autocmd BufNewFile,BufRead watson*.fish set tabstop=2 shiftwidth=2 expandtab
autocmd BufRead commit-msg.txt set filetype=gitcommit tw=72 autocmd BufRead commit-msg.txt set filetype=gitcommit tw=72
autocmd BufWritePost key_* !sync-shortcuts autocmd BufWritePost key_* !sync-shortcuts
autocmd BufNewFile,BufRead main.scss map <F1> :silent !sass %:p %:p:h/main.css<CR>
" map <leader><F2> :autocmd BufWritePost main.scss silent !sass main.scss main.css<CR>
autocmd BufNewFile,BufRead main.scss map <F2> :autocmd BufWritePost main.scss silent !sass %:p %:p:h/main.css<CR>
autocmd BufNewFile,BufRead main.scss map <F3> :autocmd! BufWritePost main.scss<CR>
" }}} commands for specific files " " }}} commands for specific files "
" vim-plug {{{ " " vim-plug {{{ "
@ -190,7 +186,7 @@ Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'terryma/vim-multiple-cursors' Plug 'terryma/vim-multiple-cursors'
" let g:multi_cursor_select_all_word_key='<C-a>' " let g:multi_cursor_select_all_word_key='<C-a>'
Plug 'dag/vim-fish' Plug 'dag/vim-fish'
Plug 'shime/vim-livedown'
Plug 'tpope/vim-fugitive'
call plug#end() call plug#end()
@ -202,21 +198,18 @@ colorscheme wal
" Mappings {{{ " " Mappings {{{ "
" function keys {{{ " " function keys {{{ "
" map <F1> silent !sass main.scss main.css<CR>
" " map <leader><F2> :autocmd BufWritePost main.scss silent !sass main.scss main.css<CR>
" map <C-F2> :autocmd BufWritePost main.scss silent !sass main.scss main.css<CR>
" map <F2> :autocmd! BufWritePost main.scss<CR>
" map <F1> :silent !scp %:p k@192.168.0.17:/home/k/a1<CR> " map <F1> :silent !scp %:p k@192.168.0.17:/home/k/a1<CR>
" map <F2> :silent !scp -P 2222 e1.html e1_style.css kevin@127.0.0.1:/home/kevin/Downloads/e1<CR> " map <F2> :silent !scp -P 2222 e1.html e1_style.css kevin@127.0.0.1:/home/kevin/Downloads/e1<CR>
map <F4> :xa<CR> map <F4> :xa<CR>
map <F5> :q!<CR> map <F5> :q!<CR>
map <F6> :qa!<CR>
" map <F6> :make -C ~/Documents/resume cv<CR> " map <F6> :make -C ~/Documents/resume cv<CR>
" map <F7> :AutoSaveToggle<CR> " map <F7> :AutoSaveToggle<CR>
map <F8> :!clear && shellcheck %<CR> map <F8> :!clear && shellcheck %<CR>
map <F9> :VimtexCompile<CR>:VimtexView<CR> map <F9> :VimtexCompile<CR>:VimtexView<CR>
" map <F9> :VimtexCompile<CR> " map <F9> :VimtexCompile<CR>
nnoremap <F10> :set paste<CR>"+p:set nopaste<CR> nnoremap <F10> :set paste<CR>"+p:set nopaste<CR>
map <F11> :LivedownPreview<CR>
map <F11> :LivedownToggle<CR>
" }}} function keys " " }}} function keys "
map <S-Enter> O<ESC> map <S-Enter> O<ESC>
@ -257,6 +250,8 @@ nnoremap <leader>ff :set foldmethod=marker<CR> zM
" find copied text " find copied text
nnoremap <leader>ft /TODO<CR> nnoremap <leader>ft /TODO<CR>
nnoremap <leader>g :YcmCompleter GoTo<CR> nnoremap <leader>g :YcmCompleter GoTo<CR>
" vimdiff split
nnoremap <leader>gd :Gvdiff<CR>
" toggle search highlighting " toggle search highlighting
nnoremap <leader>h :set hlsearch! hlsearch?<CR> nnoremap <leader>h :set hlsearch! hlsearch?<CR>
" help " help

0
zathura/.config/zathura/zathurarc-o → zathura/.config/zathura/zathurarc

Loading…
Cancel
Save