From adf0cb89b925ef1b3d052332a1ab0489daea3e1e Mon Sep 17 00:00:00 2001 From: Kevin Mok Date: Wed, 30 Oct 2024 10:42:09 -0400 Subject: [PATCH] Fix Vim commenting --- aliases/key_aliases.tmpl | 6 ++- aliases/key_dirs.tmpl | 1 + aliases/key_files.tmpl | 1 + .../fish/functions/qalc-update-amount.fish | 3 ++ dot_config/i3/config.tmpl | 2 +- dot_config/i3blocks/i3blocks.conf.tmpl | 50 +++++++++++-------- dot_vimrc.tmpl | 3 +- scripts/executable_dexscreener | 2 + 8 files changed, 42 insertions(+), 26 deletions(-) create mode 100644 dot_config/fish/functions/qalc-update-amount.fish diff --git a/aliases/key_aliases.tmpl b/aliases/key_aliases.tmpl index 02a0a8d..2603d46 100644 --- a/aliases/key_aliases.tmpl +++ b/aliases/key_aliases.tmpl @@ -203,7 +203,8 @@ uzl "unzip -l" # power options [[[ # -s "systemctl suspend" +# s "systemctl suspend" +s "xset dpms force off" # sl "i3lock-fancy && systemctl suspend" # so "xset dpms force off" xx "exit" @@ -434,7 +435,7 @@ htm "htop -s PERCENT_MEM" ia "sxiv -a" it "sxiv -t *" kill "kill -9" -ka "killall" +kal "killall" kc "killall chromium" kcm "killall compton" kd "killall Discord && killall Discord" @@ -460,6 +461,7 @@ nl "nload devices wlp4s0 -u M" nm "nomacs . &" np "nvim --" ndu "ncdu" +pc "pcmanfm &" p3 "python3" pdft "pdftotext" pdu "pdfunite" diff --git a/aliases/key_dirs.tmpl b/aliases/key_dirs.tmpl index 9abf5e4..a4e8c8f 100644 --- a/aliases/key_dirs.tmpl +++ b/aliases/key_dirs.tmpl @@ -275,6 +275,7 @@ ltc ~/coding/leetcode jf ~/school/job-fair jh ~/school/job-hunt jhi ~/school/job-hunt/interview-questions +jhig ~/school/job-hunt/interview-questions/grafana # ]]] sch # diff --git a/aliases/key_files.tmpl b/aliases/key_files.tmpl index d823619..c1e91b0 100644 --- a/aliases/key_files.tmpl +++ b/aliases/key_files.tmpl @@ -117,6 +117,7 @@ rt ~/Documents/red-hat/todo.md lip ~/Documents/linkedin/linkedin-profile.md jhi ~/school/job-hunt/info.md +jhb ~/school/job-hunt/b.md # ]]] pey # diff --git a/dot_config/fish/functions/qalc-update-amount.fish b/dot_config/fish/functions/qalc-update-amount.fish new file mode 100644 index 0000000..4da87bd --- /dev/null +++ b/dot_config/fish/functions/qalc-update-amount.fish @@ -0,0 +1,3 @@ +function qalc-update + qalc -e "$argv[1]USD to CAD" +end diff --git a/dot_config/i3/config.tmpl b/dot_config/i3/config.tmpl index 5b757f2..dfbfdf5 100755 --- a/dot_config/i3/config.tmpl +++ b/dot_config/i3/config.tmpl @@ -23,7 +23,7 @@ exec --no-startup-id i3-msg 'workspace $ws3; exec $browser' # exec --no-startup-id i3-msg 'workspace $ws5; exec $term -e twitchy' # exec --no-startup-id i3-msg 'workspace $ws5; exec firefox -P nft' exec --no-startup-id i3-msg workspace $ws6; exec discord -exec --no-startup-id i3-msg 'workspace $ws6; exec signal-desktop' +# exec --no-startup-id i3-msg 'workspace $ws6; exec signal-desktop' # exec --no-startup-id i3-msg workspace $ws1; exec $term -e fish -c 'tmux-attach school' # ]]] startup # diff --git a/dot_config/i3blocks/i3blocks.conf.tmpl b/dot_config/i3blocks/i3blocks.conf.tmpl index e4502a5..52e6b0a 100755 --- a/dot_config/i3blocks/i3blocks.conf.tmpl +++ b/dot_config/i3blocks/i3blocks.conf.tmpl @@ -43,8 +43,8 @@ TICKER=BTCUSDC interval=30 # [ticker] -# label=BTC  -# TICKER=BTC-USD +# label=btc  +# ticker=btc-usd # interval=30 [kraken] @@ -62,6 +62,18 @@ label=SOL TICKER=SOLUSD interval=30 +[dexscreener] +label=GOAT +CHAIN=solana +PAIR=9Tb2ohu5P16BpBarqd3N27WnkF51Ukfs8Z1GzzLDxVZW +interval=15 + +[dexscreener] +label=LOCK +CHAIN=solana +PAIR=AtWMAA6T9t8cq8XCccCFPGDNNQYXhScuNuY6WVRi7FKe +interval=30 + [dexscreener] label=PIXL CHAIN=ethereum @@ -74,12 +86,6 @@ interval=30 # PAIR=0x9A0AA28d999a21d3cf6F2703CDBba9FeAF4a32F7 # interval=30 -# [dexscreener] -# label=LOCK -# CHAIN=solana -# PAIR=AtWMAA6T9t8cq8XCccCFPGDNNQYXhScuNuY6WVRi7FKe -# interval=30 - # [dexscreener] # label=FLT # CHAIN=ethereum @@ -114,16 +120,16 @@ interval=60 # SHORT_NAME= # interval=5 -[spotify] -# command=python ~/linux-config/configs/i3blocks-scripts/spotify.py -# label= -label= -# label=🎧 -# green -# color=#198c19 -# aqua -# color=#2d7272 -interval=5 +# [spotify] +# # command=python ~/linux-config/configs/i3blocks-scripts/spotify.py +# # label= +# label= +# # label=🎧 +# # green +# # color=#198c19 +# # aqua +# # color=#2d7272 +# interval=5 {{ end }} # ]]] volume/spotify # @@ -157,7 +163,7 @@ interval=5 # time [[[ # [calendar] -interval=30 +interval=5 label= # {{ if eq .chezmoi.hostname "nzxt" }} # DATEFMT=+%H:%M @@ -191,9 +197,9 @@ WIDTH=220 # name [[[ # -[name] -label= -interval=30 +# [name] +# label= +# interval=30 {{ end }} # ]]] name # diff --git a/dot_vimrc.tmpl b/dot_vimrc.tmpl index 936a057..1be4ff6 100644 --- a/dot_vimrc.tmpl +++ b/dot_vimrc.tmpl @@ -343,7 +343,8 @@ Plug 'cristianoliveira/vim-react-html-snippets' Plug 'jidn/vim-dbml' " Plug 'FuDesign2008/emoji-snippets.vim' Plug 'tpope/vim-surround' -Plug 'tpope/vim-commentary' +" Plug 'tpope/vim-commentary' +Plug 'preservim/nerdcommenter' " ]]] vim-plug " " Mappings [[[ " diff --git a/scripts/executable_dexscreener b/scripts/executable_dexscreener index c3c8886..852ccb9 100755 --- a/scripts/executable_dexscreener +++ b/scripts/executable_dexscreener @@ -11,4 +11,6 @@ if (( $(echo "$price < .09" | bc -l) )); then printf "%0.4f\n" "$price" | cut -c 4- elif (( $(echo "$price < .1" | bc -l) )); then printf "%0.3f\n" "$price" | cut -c 4- +elif (( $(echo "$price < 1" | bc -l) )); then + printf "%0.3f\n" "$price" | cut -c 3- fi