Browse Source

Update

master
Kevin Mok 3 months ago
parent
commit
de57298d0f
No known key found for this signature in database GPG Key ID: 6DEED612B26C08E2
  1. 4
      aliases/key_dirs.tmpl
  2. 46
      dot_config/fish/config.fish.tmpl
  3. 3
      dot_config/fish/functions/mpv-sub.fish
  4. 10
      dot_config/i3blocks/i3blocks.conf.tmpl
  5. 2
      dot_vimrc.tmpl
  6. 7
      scripts/executable_kraken

4
aliases/key_dirs.tmpl

@ -248,7 +248,9 @@ nxo ~/coding/kogito/nexus-operator
# nft [[[ #
cvt ~/Pictures/profile-pics/conviction
mb ~/coding/mint-bot
pdg ~/Pictures/profile-pics/pudgy-penguins/test
pfps ~/Pictures/profile-pics/sappy-seals
pfpk ~/Pictures/profile-pics/gm-cafe/keek
pfpr ~/Pictures/profile-pics/reddit-avatars
@ -314,6 +316,7 @@ es ~/school/ess/story
arc ~/school/arc
egy ~/school/egypt
ggr ~/school/ggr
ggra ~/school/ggr/assignments/a1
jf ~/school/job-fair
@ -327,6 +330,7 @@ hih /mnt/linux-files-2/Videos/hot-in-herre
bb /mnt/linux-files-2/Pictures/bball
dh ~/Pictures/drake-hoodie
ets /mnt/linux-files-2/Videos/eras-taylor-swift-movie
mj /mnt/linux-files-2/Pictures/midjourney/results
mt /mnt/linux-files-2/Pictures/mutant-tees
sm /mnt/linux-files-2/Videos/sam-smith/named
wg /mnt/linux-files-2/Pictures/weed-grow-23

46
dot_config/fish/config.fish.tmpl

@ -1,5 +1,43 @@
# vim: fdm=marker ft=fish.go-template
# aliases [[[ #
# personal [[[ #
# dirs [[[ #
abbr cvt "cd ~/Pictures/profile-pics/conviction"
abbr ets "cd /mnt/linux-files-2/Videos/eras-taylor-swift-movie"
abbr hv "cd /mnt/linux-files-2/Pictures/hevin"
abbr hvn "cd ~/coding/hevin-nft"
abbr lon "libreoffice ~/Documents/expenses/net-worth.ods &"
abbr lfs2 "cd /mnt/linux-files-2/Videos/shows"
abbr mj "cd /mnt/linux-files-2/Pictures/midjourney"
abbr pdg "cd ~/Pictures/profile-pics/pudgy-penguins/test"
abbr snp "cd /mnt/linux-files-2/Videos/ipad/marvel-snap"
abbr tr "cd ~/.local/share/Terraria"
abbr da "cd /mnt/ipad/DCIM/102APPLE"
# ]]] dirs #
abbr ncy "nvim ~/Documents/journal/hobbies/courtyard-drop.md"
abbr njt "nvim ~/Documents/journal/todo/24/1.md"
abbr rsn "rsync -e 'ssh -p 399' -r . 165.22.239.234:/home/kevin/hevin/art -acvv"
# ]]] personal #
# school [[[ #
abbr js "cd ~/Documents/job-search"
abbr ssa "ssh -i ~/coding/aws.pem admin@ec2-18-223-241-198.us-east-2.compute.amazonaws.com"
# ]]] school #
abbr nej "nvim ~/Documents/emojis.md"
# ]]] aliases #
# login to X [[[ #
{{ if eq .chezmoi.username "kevin" }}
@ -183,6 +221,7 @@ abbr cff "create-fish-function"
abbr ctr "systemctl-restart"
abbr def "define"
abbr drs "dump-rarity-check"
abbr fd1 "fd --changed-within 1d"
abbr ens "enable-site"
abbr ev "evince-silent"
abbr ff "fzf-cd"
@ -215,6 +254,7 @@ abbr mat "math"
abbr mi "mpv-ipad"
abbr mn "man-vim"
abbr mdf "mkdir-cd"
abbr mps "mpv-sub"
abbr mtm "maven-test-method"
abbr pgr "grep-pdf"
abbr pgrf "grep-pdf-file"
@ -261,11 +301,5 @@ abbr xya "export-pkgs"
# ]]] fxn abbr's #
# aliases [[[ #
abbr ets "cd /mnt/linux-files-2/Videos/eras-taylor-swift-movie"
# ]]] aliases #
# task sync > /dev/null 2>&1
# ~/scripts/xmodmap-custom

3
dot_config/fish/functions/mpv-sub.fish

@ -0,0 +1,3 @@
function mpv-sub
mpv $argv[1] --sub-file=$argv[2]
end

10
dot_config/i3blocks/i3blocks.conf.tmpl

@ -52,6 +52,16 @@ label=ETH
TICKER=ETHUSDC
interval=30
[kraken]
label=SOL
TICKER=SOLUSD
interval=30
[kraken]
label=SEI
TICKER=SEIUSD
interval=30
# [ticker]
# label=SPY 
# TICKER=SPY

2
dot_vimrc.tmpl

@ -199,6 +199,7 @@ Plug 'lervag/vimtex'
{{ if not (eq .chezmoi.username "root") }}
" auto-completion for various languages
" arc
Plug 'Valloric/YouCompleteMe'
let g:ycm_filetype_blacklist = {
\ 'tagbar': 1,
@ -255,6 +256,7 @@ Plug 'vim-airline/vim-airline-themes'
let g:airline_powerline_fonts = 1
" continue Markdown lists when started
" arc
Plug 'dkarter/bullets.vim'
" coordinate Vim color scheme with terminal color scheme

7
scripts/executable_kraken

@ -7,9 +7,12 @@ else
price=$(echo "$raw" | jq -r ".result.$1.b[0]")
fi
# echo "$price"
if (( $(echo "$price < 10" | bc -l) )); then
if (( $(echo "$price < 1" | bc -l) )); then
printf "%0.3f\n" "$price" | cut -c 3-
# printf "%0.3f\n" "$price"
elif (( $(echo "$price < 10" | bc -l) )); then
printf "%0.3f\n" "$price" | cut -c 3-
elif (( $(echo "$price < 1000" | bc -l) )); then
printf "%'0.1f\n" "$price" | sed 's/,//'
elif (( $(echo "$price < 10000" | bc -l) )); then
printf "%'0.0f\n" "$price" | sed 's/,//'
else

Loading…
Cancel
Save