From de57298d0f1e6d400d3978e9cc39a77e8bd9e97e Mon Sep 17 00:00:00 2001 From: Kevin Mok Date: Wed, 31 Jan 2024 12:15:36 -0500 Subject: [PATCH] Update --- aliases/key_dirs.tmpl | 4 +++ dot_config/fish/config.fish.tmpl | 46 ++++++++++++++++++++++---- dot_config/fish/functions/mpv-sub.fish | 3 ++ dot_config/i3blocks/i3blocks.conf.tmpl | 10 ++++++ dot_vimrc.tmpl | 2 ++ scripts/executable_kraken | 7 ++-- 6 files changed, 64 insertions(+), 8 deletions(-) create mode 100644 dot_config/fish/functions/mpv-sub.fish diff --git a/aliases/key_dirs.tmpl b/aliases/key_dirs.tmpl index 0b4bb7f..acfbb97 100644 --- a/aliases/key_dirs.tmpl +++ b/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 diff --git a/dot_config/fish/config.fish.tmpl b/dot_config/fish/config.fish.tmpl index 6849e06..21e1404 100755 --- a/dot_config/fish/config.fish.tmpl +++ b/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 diff --git a/dot_config/fish/functions/mpv-sub.fish b/dot_config/fish/functions/mpv-sub.fish new file mode 100644 index 0000000..76b231c --- /dev/null +++ b/dot_config/fish/functions/mpv-sub.fish @@ -0,0 +1,3 @@ +function mpv-sub + mpv $argv[1] --sub-file=$argv[2] +end \ No newline at end of file diff --git a/dot_config/i3blocks/i3blocks.conf.tmpl b/dot_config/i3blocks/i3blocks.conf.tmpl index ee58059..389022e 100755 --- a/dot_config/i3blocks/i3blocks.conf.tmpl +++ b/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 diff --git a/dot_vimrc.tmpl b/dot_vimrc.tmpl index e62a870..e049791 100644 --- a/dot_vimrc.tmpl +++ b/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 diff --git a/scripts/executable_kraken b/scripts/executable_kraken index 06200d2..31e15e8 100755 --- a/scripts/executable_kraken +++ b/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