369-a4 fxn's: run, hex converter, block to line
- switch from pacman to yay - update packages - apparent size du
This commit is contained in:
@@ -9,8 +9,8 @@ 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
|
||||||
duh "sudo du -d 1 -ah | sort -hr"
|
duh "sudo du -d 1 -h --apparent-size | sort -hr"
|
||||||
dum "sudo du -d 1 -am | sort -hr"
|
dum "sudo du -d 1 -m --apparent-size | sort -hr"
|
||||||
m "man"
|
m "man"
|
||||||
tl "tldr"
|
tl "tldr"
|
||||||
|
|
||||||
@@ -102,39 +102,46 @@ vlh "alsamixer -c 2"
|
|||||||
|
|
||||||
# pacman {{{ #
|
# pacman {{{ #
|
||||||
|
|
||||||
pc "sudo pacman -S"
|
# pc "sudo pacman -S"
|
||||||
pcq "sudo pacman -Qi"
|
# pcq "sudo pacman -Qi"
|
||||||
pcr "sudo pacman -Rns"
|
# pcr "sudo pacman -Rns"
|
||||||
pcud "sudo pacman -Sy"
|
# pcud "sudo pacman -Sy"
|
||||||
pcug "sudo pacman -Syu"
|
# pcug "sudo pacman -Syu"
|
||||||
xpc "pacman -Qqne > ~/linux-config/txt/nzxt-pkgs.txt && pacman -Qqme > ~/linux-config/txt/nzxt-aur.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"
|
||||||
|
|
||||||
|
# install
|
||||||
|
ya "yay -S --answerdiff=N --answeredit=N"
|
||||||
|
# info
|
||||||
|
yaq "yay -Qi"
|
||||||
|
# remove
|
||||||
|
yar "yay -Rns"
|
||||||
|
# sync
|
||||||
|
yaud "yay -Sy"
|
||||||
|
# sync and update
|
||||||
|
yaug "yay -Syu"
|
||||||
|
# export packages
|
||||||
|
xya "yay -Qqne > ~/linux-config/txt/nzxt-pkgs.txt && yay -Qqme > ~/linux-config/txt/nzxt-aur.txt "
|
||||||
|
|
||||||
# }}} pacman #
|
# }}} pacman #
|
||||||
|
|
||||||
py "python"
|
py "python"
|
||||||
pipi "sudo pip install"
|
pipi "sudo pip install"
|
||||||
|
|
||||||
# internet
|
# internet
|
||||||
pgo "ping -c 3 8.8.8.8"
|
pg "ping -c 3 -W 1 8.8.8.8"
|
||||||
dh "sudo dhcpcd"
|
dh "sudo dhcpcd"
|
||||||
kdh "sudo killall dhcpcd"
|
kdh "sudo killall dhcpcd"
|
||||||
rdh "sudo killall dhcpcd && sudo dhcpcd"
|
rdh "sudo killall dhcpcd && sudo dhcpcd"
|
||||||
|
|
||||||
id "identify"
|
id "identify"
|
||||||
|
|
||||||
|
# rz "source ~/linux-config/aliases/zsh_aliases"
|
||||||
|
|
||||||
# }}} system #
|
# }}} system #
|
||||||
|
|
||||||
# config files {{{ #
|
|
||||||
rf "source ~/.config/fish/config.fish"
|
|
||||||
srf "sync-shortcuts && source ~/.config/fish/config.fish"
|
|
||||||
rz "source ~/linux-config/aliases/zsh_aliases"
|
|
||||||
|
|
||||||
pipes "pipes.sh -t 3"
|
|
||||||
|
|
||||||
# }}} config files #
|
|
||||||
|
|
||||||
# applications {{{ #
|
# applications {{{ #
|
||||||
|
|
||||||
# silent="> /dev/null 2>&1& "
|
# silent="> /dev/null 2>&1& "
|
||||||
@@ -148,11 +155,13 @@ gpe "gpg --encrypt --recipient"
|
|||||||
htc "htop -s PERCENT_CPU"
|
htc "htop -s PERCENT_CPU"
|
||||||
htm "htop -s PERCENT_MEM"
|
htm "htop -s PERCENT_MEM"
|
||||||
kd "killall Discord && killall Discord"
|
kd "killall Discord && killall Discord"
|
||||||
|
kt "killall thunderbird"
|
||||||
mp "mpv --volume=50"
|
mp "mpv --volume=50"
|
||||||
mra "man ranger"
|
mra "man ranger"
|
||||||
n "nvim"
|
n "nvim"
|
||||||
nd "node"
|
nd "node"
|
||||||
p3 "python3"
|
p3 "python3"
|
||||||
|
pipes "pipes.sh -t 3"
|
||||||
py "python"
|
py "python"
|
||||||
r "ranger"
|
r "ranger"
|
||||||
rx "redshift -x"
|
rx "redshift -x"
|
||||||
@@ -198,6 +207,7 @@ wrw "watson report"
|
|||||||
wre "watson restart"
|
wre "watson restart"
|
||||||
ws "watson status && watson stop"
|
ws "watson status && watson stop"
|
||||||
wse "watson stop && watson edit"
|
wse "watson stop && watson edit"
|
||||||
|
wsc "watson cancel"
|
||||||
wsl "watson stop && watson log --day"
|
wsl "watson stop && watson log --day"
|
||||||
wt "watson status"
|
wt "watson status"
|
||||||
|
|
||||||
@@ -272,6 +282,7 @@ gcam "git add -A . && git commit --amend -S"
|
|||||||
|
|
||||||
psgi "git add . && git commit -m 'Update' -S && git push"
|
psgi "git add . && git commit -m 'Update' -S && git push"
|
||||||
gps "git push"
|
gps "git push"
|
||||||
|
gpsi "git config credential.helper store && git push"
|
||||||
# gpsn "git push --set-upstream origin master"
|
# gpsn "git push --set-upstream origin master"
|
||||||
gpsn "eval (git push 2>&1 | tail -n 2)"
|
gpsn "eval (git push 2>&1 | tail -n 2)"
|
||||||
gpsf "git push --force"
|
gpsf "git push --force"
|
||||||
@@ -321,10 +332,9 @@ rgt "rg TODO"
|
|||||||
# svscs "f $spv_dir/src/static/scss"
|
# svscs "f $spv_dir/src/static/scss"
|
||||||
# svcss "f $spv_dir/src/spotifyvis/static/scss"
|
# svcss "f $spv_dir/src/spotifyvis/static/scss"
|
||||||
# start spv server from dir
|
# start spv server from dir
|
||||||
pg "sudo systemctl start postgresql.service && systemctl status postgresql.service"
|
# pg "sudo systemctl start postgresql.service && systemctl status postgresql.service"
|
||||||
ssv "bash ../bin/activate && python manage.py runserver"
|
ssv "bash ../bin/activate && python manage.py runserver"
|
||||||
# start spv server outside dir
|
# start spv server outside dir
|
||||||
sssv "sv && ssv"
|
|
||||||
# open spv db in psql
|
# open spv db in psql
|
||||||
spvdb "psql -d spotifyvis -U django"
|
spvdb "psql -d spotifyvis -U django"
|
||||||
mig "python manage.py makemigrations && python manage.py migrate --run-syncdb && ssv"
|
mig "python manage.py makemigrations && python manage.py migrate --run-syncdb && ssv"
|
||||||
@@ -372,12 +382,16 @@ rt "python ~/coding/rt-scraper/rt-scraper.py"
|
|||||||
|
|
||||||
# 369 {{{ #
|
# 369 {{{ #
|
||||||
|
|
||||||
|
ssc "ssh mokkar@teach.cs.utoronto.ca"
|
||||||
|
|
||||||
ma "printf '\033c' && bear make"
|
ma "printf '\033c' && bear make"
|
||||||
mc "bear make clean"
|
mc "bear make clean"
|
||||||
|
mca "bear make clean && printf '\033c' && bear make"
|
||||||
|
|
||||||
|
rmc "rm compile_commands.json"
|
||||||
rms "rm swapfile.*"
|
rms "rm swapfile.*"
|
||||||
wl6 "watson log --all --project=369 --tag=a3"
|
wl6 "watson log --all --project=369 --tag=a4"
|
||||||
wr6 "watson report --all --project=369 --tag=a3"
|
wr6 "watson report --all --project=369 --tag=a4"
|
||||||
|
|
||||||
# a2 {{{ #
|
# a2 {{{ #
|
||||||
|
|
||||||
@@ -401,8 +415,8 @@ 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"
|
||||||
wl0 "watson log --all --project=309 --tag=project"
|
wl0 "watson log --all --project=309 --tag=e3"
|
||||||
wr0 "watson report --all --project=309 --tag=project"
|
wr0 "watson report --all --project=309 --tag=e3"
|
||||||
|
|
||||||
e3t "node test-app.js"
|
e3t "node test-app.js"
|
||||||
|
|
||||||
|
|||||||
@@ -9,25 +9,34 @@ set -x GPG_TTY (tty)
|
|||||||
|
|
||||||
# }}} login to X #
|
# }}} login to X #
|
||||||
|
|
||||||
# input
|
# fish-specific {{{ #
|
||||||
|
|
||||||
fish_vi_key_bindings
|
fish_vi_key_bindings
|
||||||
set -x EDITOR nvim
|
set -x EDITOR nvim
|
||||||
set -x VISUAL nvim
|
set -x VISUAL nvim
|
||||||
|
set -U fish_help_browser firefox
|
||||||
|
|
||||||
builtin cd $last_dir
|
builtin cd $last_dir
|
||||||
bind \ce edit_command_buffer
|
bind \ce edit_command_buffer
|
||||||
bind \cr forward-word
|
bind \cr forward-word
|
||||||
|
|
||||||
# fish-specific
|
/home/kevin/linux-config/scripts/sync-shortcuts
|
||||||
|
source /home/kevin/.config/fish/key_abbr.fish
|
||||||
set -U fish_fxn_dir "/home/kevin/linux-config/fish/.config/fish/functions"
|
set -U fish_fxn_dir "/home/kevin/linux-config/fish/.config/fish/functions"
|
||||||
abbr ff "cd $fish_fxn_dir"
|
abbr ff "cd $fish_fxn_dir"
|
||||||
for fxn in (find $fish_fxn_dir -name '*.fish')
|
for fxn in (find $fish_fxn_dir -name '*.fish')
|
||||||
source $fxn
|
source $fxn
|
||||||
end
|
end
|
||||||
source /home/kevin/.config/fish/key_abbr.fish
|
abbr rf "source ~/.config/fish/config.fish"
|
||||||
|
abbr rfs "sync-shortcuts && source ~/.config/fish/config.fish"
|
||||||
abbr xf "fish_config"
|
abbr xf "fish_config"
|
||||||
abbr f. "cd .."
|
abbr f. "cd .."
|
||||||
abbr f.. "cd ../.."
|
abbr f.. "cd ../.."
|
||||||
|
abbr mt "math ''"
|
||||||
|
|
||||||
|
# }}} fish-specific #
|
||||||
|
|
||||||
|
# universal var's {{{ #
|
||||||
|
|
||||||
# spv
|
# spv
|
||||||
set -U spv_dir "/home/kevin/coding/spotify-lib-vis"
|
set -U spv_dir "/home/kevin/coding/spotify-lib-vis"
|
||||||
@@ -43,7 +52,12 @@ set -xU XSET_DELAY 200
|
|||||||
# xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE
|
# xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE
|
||||||
# xset r rate $XSET_DELAY $XSET_RATE
|
# xset r rate $XSET_DELAY $XSET_RATE
|
||||||
|
|
||||||
# fxn abbr's
|
set -U BROWSER "chromium"
|
||||||
|
|
||||||
|
# }}} universal var's #
|
||||||
|
|
||||||
|
# fxn abbr's {{{ #
|
||||||
|
|
||||||
abbr ag "grep-aliases"
|
abbr ag "grep-aliases"
|
||||||
abbr bq "benq-brightness"
|
abbr bq "benq-brightness"
|
||||||
abbr cpc "copy cat"
|
abbr cpc "copy cat"
|
||||||
@@ -65,19 +79,26 @@ abbr hst "$EDITOR ~/.local/share/fish/fish_history"
|
|||||||
abbr ut "unix-timestamp"
|
abbr ut "unix-timestamp"
|
||||||
abbr uzr "unzip-rm"
|
abbr uzr "unzip-rm"
|
||||||
|
|
||||||
set -U BROWSER "chromium"
|
# }}} fxn abbr's #
|
||||||
|
|
||||||
abbr hm "cd $mfs_dir && hugo serve -D --disableFastRender"
|
abbr hm "cd $mfs_dir && hugo serve -D --disableFastRender"
|
||||||
|
|
||||||
|
# school {{{ #
|
||||||
|
|
||||||
# 309
|
# 309
|
||||||
abbr r0t "revert-e3-json restaurants"
|
# abbr r0t "./revert-e3-json restaurants"
|
||||||
abbr r0s "revert-e3-json reservations"
|
# abbr r0s "./revert-e3-json reservations"
|
||||||
|
|
||||||
# 369
|
# 369
|
||||||
abbr grc "grep-c"
|
abbr grc "grep-c"
|
||||||
abbr grh "grep-headers"
|
abbr grh "grep-headers"
|
||||||
abbr rgh "rg-headers"
|
abbr rgh "rg-headers"
|
||||||
|
|
||||||
abbr r6 "run-a3 f d o"
|
abbr r6 "run-a4 h e"
|
||||||
abbr r6g "run-a3 f d g"
|
|
||||||
abbr r6s "run-a3 s c o"
|
# abbr r6 "run-a3 f d o"
|
||||||
abbr g6 "source $fish_fxn_dir/369/a3/gdb-a3-break.fish && gdb-a3-break c c"
|
# abbr r6g "run-a3 f d g"
|
||||||
|
# abbr r6s "run-a3 s c o"
|
||||||
|
# abbr g6 "source $fish_fxn_dir/369/a3/gdb-a3-break.fish && gdb-a3-break c c"
|
||||||
|
|
||||||
|
# }}} school #
|
||||||
|
|||||||
5
fish/.config/fish/functions/369/a4/block-to-line.fish
Normal file
5
fish/.config/fish/functions/369/a4/block-to-line.fish
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
function block-to-line
|
||||||
|
set block_size 1024
|
||||||
|
set bytes_per_line 16
|
||||||
|
math "($block_size*$argv[1])/$bytes_per_line + 1"
|
||||||
|
end
|
||||||
12
fish/.config/fish/functions/369/a4/hex.fish
Normal file
12
fish/.config/fish/functions/369/a4/hex.fish
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
function hex
|
||||||
|
switch $argv[1]
|
||||||
|
case h
|
||||||
|
# print dec/bin.
|
||||||
|
printf "%d " (echo "ibase=16;obase=A;$argv[2]" | bc)
|
||||||
|
printf "%d\n" (echo "ibase=16;obase=2;$argv[2]" | bc)
|
||||||
|
case d
|
||||||
|
# print hex/bin.
|
||||||
|
printf "%s " (echo "obase=16;$argv[2]" | bc)
|
||||||
|
printf "%d\n" (echo "obase=2;$argv[2]" | bc)
|
||||||
|
end
|
||||||
|
end
|
||||||
29
fish/.config/fish/functions/369/a4/run-a4.fish
Normal file
29
fish/.config/fish/functions/369/a4/run-a4.fish
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
function run-a4
|
||||||
|
# 1 = ex, 2 = img
|
||||||
|
printf '\033c'
|
||||||
|
# and bear make clean
|
||||||
|
bear make
|
||||||
|
|
||||||
|
set img_file 'imgs/emptydisk.img'
|
||||||
|
switch $argv[2]
|
||||||
|
case 1
|
||||||
|
set img_file 'imgs/onefile.img'
|
||||||
|
case m
|
||||||
|
set img_file 'imgs/multilevel.img'
|
||||||
|
case l
|
||||||
|
set img_file 'imgs/largefile.img'
|
||||||
|
end
|
||||||
|
|
||||||
|
switch $argv[1]
|
||||||
|
case h
|
||||||
|
./ext2_helpers_tester 'imgs/multilevel.img' '/level1/level2/bfile'
|
||||||
|
case hg
|
||||||
|
gdb -ex "run" -ex "bt" -ex "q" \
|
||||||
|
--args ./ext2_helpers_tester './imgs/multilevel.img' '/level1/level2/level3//'
|
||||||
|
case m
|
||||||
|
./ext2_mkdir $img_file '/'
|
||||||
|
# ./ext2_mkdir 'imgs/multilevel.img' '/level1/level2/bfile'
|
||||||
|
case '*'
|
||||||
|
./readimage $img_file
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
function grep-aliases
|
function grep-aliases
|
||||||
set key_aliases /home/kevin/linux-config/aliases/key_aliases
|
set key_aliases /home/kevin/linux-config/aliases/key_aliases
|
||||||
# grep $argv[1] $key_aliases
|
rg $argv[1] $key_aliases
|
||||||
rg "^$argv[1]" $key_aliases
|
# rg "^$argv[1]" $key_aliases
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
function revert-e3-json
|
|
||||||
cp $argv[1]_example.json $argv[1].json
|
|
||||||
end
|
|
||||||
@@ -41,16 +41,17 @@ bindsym Mod4+h exec echo 'kevin.mok@live.ca' | xclip -selection clipboard
|
|||||||
bindsym Mod4+$mod+m exec pass -c uoft/markus
|
bindsym Mod4+$mod+m exec pass -c uoft/markus
|
||||||
bindsym Mod4+n exec urxvt -e nvim
|
bindsym Mod4+n exec urxvt -e nvim
|
||||||
bindsym Mod4+o exec xclip -selection clipboard ~/.password-store/social/gmail
|
bindsym Mod4+o exec xclip -selection clipboard ~/.password-store/social/gmail
|
||||||
|
bindsym Mod4+$mod+o exec xset dpms force off
|
||||||
# bindsym Mod4+p workspace $ws4; exec pgadmin3
|
# bindsym Mod4+p workspace $ws4; exec pgadmin3
|
||||||
# bindsym Mod4+p exec pycharm
|
# bindsym Mod4+p exec pycharm
|
||||||
bindsym Mod4+p exec passmenu
|
bindsym Mod4+p exec passmenu
|
||||||
|
# bindsym Mod4+$mod+p exec notify-send "ping" "$(ping -c 3 -W 1 8.8.8.8)"
|
||||||
bindsym Mod4+q exec qdirstat
|
bindsym Mod4+q exec qdirstat
|
||||||
bindsym Mod4+r exec urxvt -e ranger
|
bindsym Mod4+r exec urxvt -e ranger
|
||||||
bindsym Mod4+$mod+r exec notify-send "watson restart" "$(watson restart)"
|
bindsym Mod4+$mod+r exec notify-send "watson restart" "$(watson restart)"
|
||||||
bindsym control+$mod+s exec systemctl suspend
|
bindsym control+$mod+s exec systemctl suspend
|
||||||
bindsym Mod4+$mod+s exec xset dpms force off
|
|
||||||
# bindsym Mod4+t exec st
|
# bindsym Mod4+t exec st
|
||||||
bindsym Mod4+t exec xclip -selection clipboard ~/.password-store/social/trapbot
|
bindsym Mod4+$mod+t exec xclip -selection clipboard ~/.password-store/social/trapbot
|
||||||
bindsym Mod4+u exec echo 'kevin.mok@mail.utoronto.ca' | xclip -selection clipboard
|
bindsym Mod4+u exec echo 'kevin.mok@mail.utoronto.ca' | xclip -selection clipboard
|
||||||
bindsym Mod4+$mod+u exec pass -c uoft/acorn
|
bindsym Mod4+$mod+u exec pass -c uoft/acorn
|
||||||
bindsym Mod4+w exec notify-send "watson status" "$(watson status)"
|
bindsym Mod4+w exec notify-send "watson status" "$(watson status)"
|
||||||
@@ -231,7 +232,8 @@ set $ws5 "5 "
|
|||||||
workspace $ws5 output $samsung
|
workspace $ws5 output $samsung
|
||||||
assign [class="Steam"] $ws5
|
assign [class="Steam"] $ws5
|
||||||
bindsym $mod+F5 workspace $ws5; exec $browser
|
bindsym $mod+F5 workspace $ws5; exec $browser
|
||||||
bindsym Mod4+g workspace $ws5; layout stacking; exec urxvt -e steam
|
# bindsym Mod4+g workspace $ws5; layout stacking; exec urxvt -e steam
|
||||||
|
bindsym Mod4+t workspace $ws5; exec thunderbird
|
||||||
|
|
||||||
set $ws6 "6 "
|
set $ws6 "6 "
|
||||||
workspace $ws6 output $samsung
|
workspace $ws6 output $samsung
|
||||||
|
|||||||
@@ -668,11 +668,14 @@ set preview_images_method w3m
|
|||||||
|
|
||||||
# }}} image preview #
|
# }}} image preview #
|
||||||
|
|
||||||
|
# custom {{{ #
|
||||||
|
|
||||||
# editing ranger config
|
# editing ranger config
|
||||||
map R chain shell nvim -p ~/.config/ranger/rc.conf %rangerdir/config/rc.conf; source ~/.config/ranger/rc.conf
|
map R chain shell nvim -p ~/.config/ranger/rc.conf %rangerdir/config/rc.conf; source ~/.config/ranger/rc.conf
|
||||||
map rr source ~/.config/ranger/rc.conf
|
map rr source ~/.config/ranger/rc.conf
|
||||||
|
|
||||||
# backgrounds
|
# backgrounds {{{ #
|
||||||
|
|
||||||
map w shell /usr/bin/wal -i %f
|
map w shell /usr/bin/wal -i %f
|
||||||
map bde shell mv %f dim/editing
|
map bde shell mv %f dim/editing
|
||||||
map bdn shell mv %f dim/non-editing
|
map bdn shell mv %f dim/non-editing
|
||||||
@@ -681,6 +684,8 @@ map bbn shell mv %f bright/non-editing
|
|||||||
map be shell mv %f editing
|
map be shell mv %f editing
|
||||||
map bn shell mv %f non-editing
|
map bn shell mv %f non-editing
|
||||||
|
|
||||||
|
# }}} backgrounds #
|
||||||
|
|
||||||
# bulk rename
|
# bulk rename
|
||||||
map cw eval fm.execute_console("bulkrename") if fm.thisdir.marked_items else fm.open_console("rename ")
|
map cw eval fm.execute_console("bulkrename") if fm.thisdir.marked_items else fm.open_console("rename ")
|
||||||
|
|
||||||
@@ -698,3 +703,5 @@ map dg shell dragon-drag-and-drop -a -x %p
|
|||||||
# a plugin that adds file glyphs / icon support to Ranger:
|
# a plugin that adds file glyphs / icon support to Ranger:
|
||||||
# https://github.com/alexanderjeurissen/ranger_devicons
|
# https://github.com/alexanderjeurissen/ranger_devicons
|
||||||
default_linemode devicons
|
default_linemode devicons
|
||||||
|
|
||||||
|
# }}} custom #
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
/home/kevin/.android
|
||||||
|
/home/kevin/.AndroidStudio3.3
|
||||||
|
/home/kevin/Android
|
||||||
/home/kevin/.cache
|
/home/kevin/.cache
|
||||||
/home/kevin/.local/share/Steam
|
/home/kevin/.local/share/Steam
|
||||||
/lost+found
|
/lost+found
|
||||||
|
|||||||
@@ -53,8 +53,11 @@ e3 /home/kevin/school/309/e3
|
|||||||
|
|
||||||
# 369
|
# 369
|
||||||
6 /home/kevin/school/369
|
6 /home/kevin/school/369
|
||||||
|
6l /home/kevin/school/369/notes/lectures
|
||||||
|
|
||||||
6f /home/kevin/linux-config/fish/.config/fish/functions/369/a3
|
6f /home/kevin/linux-config/fish/.config/fish/functions/369/a3
|
||||||
a3 /home/kevin/school/369/a3/a3
|
a4d /home/kevin/school/369/a4/a4
|
||||||
|
a43 /home/kevin/school/369/a4-3/fs3
|
||||||
|
|
||||||
hp /home/kevin/school/hps
|
hp /home/kevin/school/hps
|
||||||
lt /home/kevin/school/latex-notes
|
lt /home/kevin/school/latex-notes
|
||||||
|
|||||||
@@ -1,14 +1,18 @@
|
|||||||
|
android-studio
|
||||||
bear
|
bear
|
||||||
browserpass
|
browserpass
|
||||||
chromium-widevine
|
chromium-widevine
|
||||||
cliqz
|
cliqz-bin
|
||||||
discord
|
discord
|
||||||
dragon-drag-and-drop-git
|
dragon-drag-and-drop-git
|
||||||
ffcast
|
ffcast
|
||||||
|
flashplugin-focusfix
|
||||||
htop-vim-git
|
htop-vim-git
|
||||||
i3blocks-git
|
i3blocks-git
|
||||||
linux-kevin
|
linux-kevin
|
||||||
linux-kevin-headers
|
linux-kevin-headers
|
||||||
|
linux-nzxt
|
||||||
|
linux-nzxt-headers
|
||||||
lua-cjson
|
lua-cjson
|
||||||
nx3-all
|
nx3-all
|
||||||
peaclock
|
peaclock
|
||||||
@@ -26,11 +30,11 @@ systemd-numlockontty
|
|||||||
texlive-local-algorithmicx
|
texlive-local-algorithmicx
|
||||||
texlive-local-algorithms
|
texlive-local-algorithms
|
||||||
texlive-local-enumitem
|
texlive-local-enumitem
|
||||||
texlive-local-hyperref
|
|
||||||
texlive-local-ifmtarg
|
texlive-local-ifmtarg
|
||||||
texlive-local-multirow
|
texlive-local-multirow
|
||||||
texlive-local-numprint
|
texlive-local-numprint
|
||||||
texlive-local-pgfplots
|
texlive-local-pgfplots
|
||||||
|
texlive-local-siunitx
|
||||||
texlive-local-tkz-base
|
texlive-local-tkz-base
|
||||||
texlive-local-tkz-euclide
|
texlive-local-tkz-euclide
|
||||||
texlive-local-xifthen
|
texlive-local-xifthen
|
||||||
@@ -38,8 +42,9 @@ texlive-localmanager-git
|
|||||||
tor-browser
|
tor-browser
|
||||||
trizen
|
trizen
|
||||||
ttf-emojione
|
ttf-emojione
|
||||||
|
vidir
|
||||||
watson
|
watson
|
||||||
weechat-vimode-git
|
weechat-vimode-git
|
||||||
wego
|
wego
|
||||||
xboxdrv
|
|
||||||
yad
|
yad
|
||||||
|
yay
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ e2fsprogs
|
|||||||
electrum
|
electrum
|
||||||
encfs
|
encfs
|
||||||
evince
|
evince
|
||||||
evolution
|
|
||||||
fakeroot
|
fakeroot
|
||||||
fd
|
fd
|
||||||
feh
|
feh
|
||||||
@@ -39,6 +38,7 @@ filesystem
|
|||||||
findutils
|
findutils
|
||||||
firefox
|
firefox
|
||||||
fish
|
fish
|
||||||
|
flashplugin
|
||||||
flex
|
flex
|
||||||
fzf
|
fzf
|
||||||
gawk
|
gawk
|
||||||
@@ -52,6 +52,8 @@ glibc
|
|||||||
grep
|
grep
|
||||||
grub
|
grub
|
||||||
gzip
|
gzip
|
||||||
|
hexyl
|
||||||
|
highlight
|
||||||
hugo
|
hugo
|
||||||
i3-gaps
|
i3-gaps
|
||||||
i3status
|
i3status
|
||||||
@@ -72,7 +74,6 @@ logrotate
|
|||||||
lolcat
|
lolcat
|
||||||
lsd
|
lsd
|
||||||
lsof
|
lsof
|
||||||
lutris
|
|
||||||
lvm2
|
lvm2
|
||||||
lxappearance
|
lxappearance
|
||||||
make
|
make
|
||||||
@@ -82,6 +83,7 @@ mdadm
|
|||||||
meld
|
meld
|
||||||
mpv
|
mpv
|
||||||
nano
|
nano
|
||||||
|
ncdu
|
||||||
neofetch
|
neofetch
|
||||||
neomutt
|
neomutt
|
||||||
neovim
|
neovim
|
||||||
@@ -117,6 +119,7 @@ python-dbus
|
|||||||
python-pip
|
python-pip
|
||||||
python-pywal
|
python-pywal
|
||||||
python-setuptools
|
python-setuptools
|
||||||
|
qemu
|
||||||
qrencode
|
qrencode
|
||||||
ranger
|
ranger
|
||||||
redshift
|
redshift
|
||||||
@@ -143,9 +146,12 @@ tar
|
|||||||
texinfo
|
texinfo
|
||||||
texlive-core
|
texlive-core
|
||||||
the_silver_searcher
|
the_silver_searcher
|
||||||
|
thunderbird
|
||||||
tidy
|
tidy
|
||||||
|
time
|
||||||
tmux
|
tmux
|
||||||
tor
|
tor
|
||||||
|
transmission-cli
|
||||||
transmission-gtk
|
transmission-gtk
|
||||||
ttf-dejavu
|
ttf-dejavu
|
||||||
ttf-font-awesome
|
ttf-font-awesome
|
||||||
@@ -158,10 +164,8 @@ valgrind
|
|||||||
vi
|
vi
|
||||||
vim
|
vim
|
||||||
virtualbox
|
virtualbox
|
||||||
vlc
|
|
||||||
w3m
|
w3m
|
||||||
which
|
which
|
||||||
wine
|
|
||||||
wireless_tools
|
wireless_tools
|
||||||
wkhtmltopdf
|
wkhtmltopdf
|
||||||
wpa_actiond
|
wpa_actiond
|
||||||
@@ -187,7 +191,6 @@ xfsprogs
|
|||||||
xorg-bdftopcf
|
xorg-bdftopcf
|
||||||
xorg-iceauth
|
xorg-iceauth
|
||||||
xorg-luit
|
xorg-luit
|
||||||
xorg-mkfontdir
|
|
||||||
xorg-mkfontscale
|
xorg-mkfontscale
|
||||||
xorg-server
|
xorg-server
|
||||||
xorg-sessreg
|
xorg-sessreg
|
||||||
|
|||||||
79
vim/.vimrc
79
vim/.vimrc
@@ -1,23 +1,36 @@
|
|||||||
" set x=y {{{ "
|
" set x=y {{{ "
|
||||||
au BufWinEnter * set relativenumber
|
|
||||||
" set background=dark
|
|
||||||
set encoding=utf-8
|
|
||||||
set background=light
|
|
||||||
" set t_Co=256
|
|
||||||
filetype plugin on
|
|
||||||
syntax on
|
|
||||||
set tabstop=4
|
|
||||||
set tw=80
|
|
||||||
set linebreak
|
|
||||||
" set colorcolumn=80
|
|
||||||
set shiftwidth=4
|
|
||||||
set autoindent
|
set autoindent
|
||||||
" set mouse=c
|
set autoread
|
||||||
set mouse=a
|
set background=dark
|
||||||
|
" set colorcolumn=80
|
||||||
set clipboard+=unnamedplus
|
set clipboard+=unnamedplus
|
||||||
set foldmethod=marker
|
set diffopt=filler,context:3
|
||||||
|
set encoding=utf-8
|
||||||
|
set expandtab
|
||||||
" set foldmethod=indent
|
" set foldmethod=indent
|
||||||
|
set foldmethod=marker
|
||||||
|
set hlsearch
|
||||||
|
set linebreak
|
||||||
set linespace=5
|
set linespace=5
|
||||||
|
set mouse=a
|
||||||
|
" set mouse=c
|
||||||
|
" set noswapfile
|
||||||
|
set relativenumber
|
||||||
|
set shiftwidth=4
|
||||||
|
set tabstop=4
|
||||||
|
" set t_Co=256
|
||||||
|
" set timeoutlen=500
|
||||||
|
set timeoutlen=350
|
||||||
|
set tw=80
|
||||||
|
set updatetime=1000
|
||||||
|
|
||||||
|
autocmd VimResized * wincmd =
|
||||||
|
filetype plugin on
|
||||||
|
filetype indent on
|
||||||
|
syntax on
|
||||||
|
au CursorHold,CursorHoldI * checktime
|
||||||
|
|
||||||
" cursor indicator {{{ "
|
" cursor indicator {{{ "
|
||||||
|
|
||||||
" set listchars=tab:\|\
|
" set listchars=tab:\|\
|
||||||
@@ -26,25 +39,14 @@ set linespace=5
|
|||||||
" set cursorline
|
" set cursorline
|
||||||
|
|
||||||
" }}} cursor indicator "
|
" }}} cursor indicator "
|
||||||
set diffopt=filler,context:3
|
|
||||||
|
|
||||||
" set timeoutlen=500
|
|
||||||
set timeoutlen=350
|
|
||||||
set hlsearch
|
|
||||||
" set noswapfile
|
|
||||||
" let maplocalleader="-"
|
|
||||||
let maplocalleader="\\"
|
|
||||||
" }}} set x=y "
|
" }}} set x=y "
|
||||||
|
|
||||||
" commands for file types {{{ "
|
" commands for file types {{{ "
|
||||||
|
|
||||||
autocmd VimResized * wincmd =
|
|
||||||
autocmd BufNewFile,BufRead .* set syntax=sh
|
autocmd BufNewFile,BufRead .* set syntax=sh
|
||||||
filetype plugin on
|
autocmd FileType *css,htmldjango,html,javascript,markdown,tex,text,yaml set tabstop=2 shiftwidth=2
|
||||||
filetype indent on
|
" autocmd BufNewFile,BufRead *.md set filetype=markdown
|
||||||
autocmd FileType *css,htmldjango,html,javascript,markdown,tex,yaml set tabstop=2 shiftwidth=2 expandtab
|
|
||||||
autocmd BufNewFile,BufRead *.txt set tabstop=2 shiftwidth=2 expandtab
|
|
||||||
autocmd BufNewFile,BufRead *.md set filetype=markdown
|
|
||||||
autocmd Filetype markdown set textwidth=0
|
autocmd Filetype markdown set textwidth=0
|
||||||
" autocmd Filetype html set foldmarker=0
|
" autocmd Filetype html set foldmarker=0
|
||||||
|
|
||||||
@@ -55,7 +57,6 @@ autocmd FileType sh map <F8> :!clear && shellcheck %<CR>
|
|||||||
" autocmd FileType tex map <F8> :VimtexCompile<CR>:VimtexView<CR>
|
" autocmd FileType tex map <F8> :VimtexCompile<CR>:VimtexView<CR>
|
||||||
autocmd VimEnter *.tex VimtexCompile
|
autocmd VimEnter *.tex VimtexCompile
|
||||||
autocmd VimLeave *.tex !tex-clean %:p
|
autocmd VimLeave *.tex !tex-clean %:p
|
||||||
" map <F9> :VimtexCompile<CR>
|
|
||||||
|
|
||||||
" " auto-reload vimrc {{{ "
|
" " auto-reload vimrc {{{ "
|
||||||
|
|
||||||
@@ -81,7 +82,7 @@ autocmd BufNewFile,BufRead key_* map <F1> :silent !sync-shortcuts<CR>
|
|||||||
|
|
||||||
" }}} commands for specific files "
|
" }}} commands for specific files "
|
||||||
|
|
||||||
" vim-plug {{{ "
|
" vim-plug {{{
|
||||||
" plug auto-install
|
" plug auto-install
|
||||||
if empty(glob('~/.vim/autoload/plug.vim'))
|
if empty(glob('~/.vim/autoload/plug.vim'))
|
||||||
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
|
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
|
||||||
@@ -200,8 +201,13 @@ Plug 'PotatoesMaster/i3-vim-syntax'
|
|||||||
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
|
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>'
|
||||||
|
let g:multi_cursor_exit_from_visual_mode=0
|
||||||
|
let g:multi_cursor_exit_from_insert_mode=0
|
||||||
Plug 'dag/vim-fish'
|
Plug 'dag/vim-fish'
|
||||||
|
Plug 'shime/vim-livedown'
|
||||||
Plug 'tpope/vim-fugitive'
|
Plug 'tpope/vim-fugitive'
|
||||||
|
" auto reload file
|
||||||
|
Plug 'djoshea/vim-autoread'
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
@@ -218,12 +224,16 @@ map <F4> :xa<CR>
|
|||||||
map <F5> :q!<CR>
|
map <F5> :q!<CR>
|
||||||
map <F6> :qa!<CR>
|
map <F6> :qa!<CR>
|
||||||
map <F7> :AutoSaveToggle<CR>
|
map <F7> :AutoSaveToggle<CR>
|
||||||
|
" reload file
|
||||||
|
nnoremap <F9> :e<CR>
|
||||||
nnoremap <F10> :set paste<CR>"+p:set nopaste<CR>
|
nnoremap <F10> :set paste<CR>"+p:set nopaste<CR>
|
||||||
|
nnoremap <F11> :set paste<CR>"*p:set nopaste<CR>
|
||||||
" }}} function keys "
|
" }}} function keys "
|
||||||
|
|
||||||
map <S-Enter> O<ESC>
|
map <S-Enter> O<ESC>
|
||||||
" swap text visually
|
" swap text visually
|
||||||
vnoremap <C-P> <Esc>`.``gvP``P
|
vnoremap <C-P> <Esc>`.``gvP``P
|
||||||
|
ino <C-A> <C-O>yiW<End>=<C-R>=<C-R>0<CR>
|
||||||
|
|
||||||
" splits {{{ "
|
" splits {{{ "
|
||||||
nnoremap <C-Down> <C-W><C-J>
|
nnoremap <C-Down> <C-W><C-J>
|
||||||
@@ -237,6 +247,7 @@ nnoremap <C-w> <C-W>|
|
|||||||
|
|
||||||
" leader mappings {{{ "
|
" leader mappings {{{ "
|
||||||
let mapleader="\<Space>"
|
let mapleader="\<Space>"
|
||||||
|
" let maplocalleader="-"
|
||||||
|
|
||||||
" find alias
|
" find alias
|
||||||
nnoremap <leader>a /^ <Left>
|
nnoremap <leader>a /^ <Left>
|
||||||
@@ -285,10 +296,8 @@ nnoremap <leader>plc :PlugClean<CR>
|
|||||||
nnoremap <leader>plu :PlugUpdate<CR>
|
nnoremap <leader>plu :PlugUpdate<CR>
|
||||||
" don't break lines
|
" don't break lines
|
||||||
nnoremap <leader>py :set tw=0<CR>
|
nnoremap <leader>py :set tw=0<CR>
|
||||||
" reload file
|
|
||||||
nnoremap <leader>r :e<CR>
|
|
||||||
" replace in next x lines
|
" replace in next x lines
|
||||||
nnoremap <leader>re q:i.,.+s///g<ESC>Fsi
|
nnoremap <leader>r q:i.,.+s///g<ESC>Fsi
|
||||||
" replace in line
|
" replace in line
|
||||||
nnoremap <leader>rl q:i.s///g<left><left><left>
|
nnoremap <leader>rl q:i.s///g<left><left><left>
|
||||||
" replace in visual selection
|
" replace in visual selection
|
||||||
@@ -329,6 +338,8 @@ nnoremap <leader>z za
|
|||||||
|
|
||||||
" Local Mappings {{{ "
|
" Local Mappings {{{ "
|
||||||
|
|
||||||
|
let maplocalleader="\\"
|
||||||
|
|
||||||
" tex {{{ "
|
" tex {{{ "
|
||||||
|
|
||||||
autocmd Filetype tex inoremap <localleader>bt \bowtie
|
autocmd Filetype tex inoremap <localleader>bt \bowtie
|
||||||
@@ -367,6 +378,8 @@ autocmd Filetype tex inoremap <localleader>tx $t(x)$
|
|||||||
|
|
||||||
" }}} tex "
|
" }}} tex "
|
||||||
|
|
||||||
|
autocmd Filetype c inoremap <localleader>uc unsigned char
|
||||||
|
|
||||||
autocmd Filetype fish inoremap <localleader>1 $argv[1]
|
autocmd Filetype fish inoremap <localleader>1 $argv[1]
|
||||||
autocmd Filetype fish inoremap <localleader>2 $argv[2]
|
autocmd Filetype fish inoremap <localleader>2 $argv[2]
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
set recolor true
|
set recolor true
|
||||||
set recolor-darkcolor "#dcdccc"
|
set recolor-darkcolor "#dcdccc"
|
||||||
set recolor-lightcolor "#1f1f1f"
|
set recolor-lightcolor "#1f1f1f"
|
||||||
|
set selection-clipboard clipboard
|
||||||
|
|||||||
Reference in New Issue
Block a user