From f9c5f9afe0912d4ffd67de9832ab64396af75a69 Mon Sep 17 00:00:00 2001 From: Kevin Mok Date: Tue, 14 Jan 2025 14:48:37 -0500 Subject: [PATCH] i3 Metamask shortcut --- aliases/key_aliases.tmpl | 11 ++++-- aliases/key_dirs.tmpl | 2 + aliases/key_files.tmpl | 7 ++-- dot_Xmodmap | 2 +- dot_Xmodmap-vm | 11 ++++++ dot_config/fish/config.fish.tmpl | 2 + dot_config/i3/config.tmpl | 10 +++-- dot_config/i3blocks/i3blocks.conf.tmpl | 51 +++++++++----------------- dot_imwheelrc | 6 ++- dot_qalcrc | 1 + dot_xinitrc.tmpl | 3 +- scripts/executable_dexscreener | 2 + scripts/executable_kraken | 2 + 13 files changed, 60 insertions(+), 50 deletions(-) create mode 100644 dot_Xmodmap-vm create mode 100644 dot_qalcrc diff --git a/aliases/key_aliases.tmpl b/aliases/key_aliases.tmpl index 2603d46..4528dff 100644 --- a/aliases/key_aliases.tmpl +++ b/aliases/key_aliases.tmpl @@ -435,7 +435,8 @@ htm "htop -s PERCENT_MEM" ia "sxiv -a" it "sxiv -t *" kill "kill -9" -kal "killall" +#kal "killall" +ka "killall" kc "killall chromium" kcm "killall compton" kd "killall Discord && killall Discord" @@ -459,6 +460,7 @@ mra "man ranger" n "nvim" nl "nload devices wlp4s0 -u M" nm "nomacs . &" +noti "/usr/lib/notification-daemon-1.0/notification-daemon &" np "nvim --" ndu "ncdu" pc "pcmanfm &" @@ -536,8 +538,9 @@ pei "pass edit info" pi "pass insert -m" pg "pass generate -c" ps "pass show" +psr "pass rm" psi "pass show info | bat" -pev "pass edit finances/visa-cash" +pev "pass edit finances/visa" xc "xclip -selection clipboard" xo "xclip -o >" @@ -1094,11 +1097,11 @@ dst "docker stop" # kubectl [[[ # k "kubectl" -ka "kubectl apply -f" +kap "kubectl apply -f" kcr "kubectl create" kcf "kubectl create ns kogito; kubectl config set-context --current --namespace=kogito" kct "kubectx" -kd "kubectl describe" +#kd "kubectl describe" kdd "kubectl describe deployment" kdp "kubectl describe pod" kdi "kubectl describe kogitoinfra" diff --git a/aliases/key_dirs.tmpl b/aliases/key_dirs.tmpl index a4e8c8f..ac333ae 100644 --- a/aliases/key_dirs.tmpl +++ b/aliases/key_dirs.tmpl @@ -277,6 +277,8 @@ jh ~/school/job-hunt jhi ~/school/job-hunt/interview-questions jhig ~/school/job-hunt/interview-questions/grafana +el ~/coding/eliza + # ]]] sch # # personal [[[ # diff --git a/aliases/key_files.tmpl b/aliases/key_files.tmpl index c1e91b0..9212da9 100644 --- a/aliases/key_files.tmpl +++ b/aliases/key_files.tmpl @@ -46,7 +46,7 @@ hh ~/.habitctl/habits hlg ~/coding/spotify-lib-vis/src/api/management/commands/update-history.log id ~/Documents/journal/todo/ideas.md ig ./.gitignore -jt ~/Documents/journal/todo/24/4.md +jt ~/Documents/journal/todo/25/1.md k ~/linux-config/dot_config/kitty/kitty.conf lh ~/Documents/listening-history/polarbier.csv mc ~/coding/mf-site/assets/sass/main.scss @@ -122,9 +122,8 @@ jhb ~/school/job-hunt/b.md # ]]] pey # ej ~/Documents/emojis/emojis.md -nf ~/Documents/twitter/nft-24.md -ra ~/Documents/chat/reddit/avatar.md -ds ~/Documents/nft/deep-sea-research.md +nf ~/Documents/twitter/nft-25.md +sg ~/Documents/chat/signal/jay-groups.md wd ~/Documents/journal/personal/weed.md wo ~/Documents/workout-logs/7/running.md diff --git a/dot_Xmodmap b/dot_Xmodmap index 905f1df..d7744aa 100644 --- a/dot_Xmodmap +++ b/dot_Xmodmap @@ -1,8 +1,8 @@ clear Lock keycode 9 = Caps_Lock -keycode 22 = BackSpace keycode 66 = Escape +keycode 22 = BackSpace pointer = 1 2 3 6 7 4 5 10 11 12 8 9 ! side thumb button as middle click diff --git a/dot_Xmodmap-vm b/dot_Xmodmap-vm new file mode 100644 index 0000000..fa259c6 --- /dev/null +++ b/dot_Xmodmap-vm @@ -0,0 +1,11 @@ +clear Lock + +! keycode 9 = Caps_Lock +! keycode 66 = Escape +keycode 9 = Escape +keycode 66 = Caps_Lock +keycode 22 = BackSpace + +pointer = 1 2 3 6 7 4 5 10 11 12 8 9 +! side thumb button as middle click +! pointer = 1 10 3 6 7 4 5 2 11 12 8 9 diff --git a/dot_config/fish/config.fish.tmpl b/dot_config/fish/config.fish.tmpl index 90d28c8..e72ec1f 100755 --- a/dot_config/fish/config.fish.tmpl +++ b/dot_config/fish/config.fish.tmpl @@ -140,6 +140,8 @@ set -x IPAD_IMG 18 source /home/kevin/coding/aws.fish +set -x LIBVIRT_DEFAULT_URI qemu:///system + # ]]] universal var's # # fish-specific [[[ # diff --git a/dot_config/i3/config.tmpl b/dot_config/i3/config.tmpl index dfbfdf5..2f5d870 100755 --- a/dot_config/i3/config.tmpl +++ b/dot_config/i3/config.tmpl @@ -8,7 +8,8 @@ set $term urxvt # set $term_alt kitty set $term_alt st # set $term_alt urxvt -exec dunst +#exec dunst +exec /usr/lib/notification-daemon-1.0/notification-daemon exec compton exec imwheel exec numlockx on @@ -23,7 +24,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 # @@ -57,7 +58,8 @@ bindsym Mod4+Return exec /home/kevin/scripts/dmenu-history -nb "$fg" -nf "$bg" - # bindsym Mod4+b layout tabbed; exec zathura # bindsym Mod4+c exec $browser # bindsym Mod4+$mod+c exec chatterino -bindsym Mod4+c exec chatterino +#bindsym Mod4+c exec chatterino +bindsym Mod4+c exec pass -c finances/metamask bindsym Mod4+$mod+c exec $browser # bindsym Mod4+e exec notify-send "HPS Word Count" "$(pdftotext /home/kevin/school/latex-notes/hps/essay.pdf - | wc -w)" # bindsym Mod4+e exec emacs @@ -419,7 +421,7 @@ workspace $ws6 output $secondary assign [class="Slack"] $ws6 bindsym Mod4+d workspace $ws6; exec discord bindsym Mod4+$mod+d workspace $ws6; exec element-desktop -# bindsym Mod4+i workspace $ws6; exec signal-desktop +bindsym Mod4+i workspace $ws6; exec signal-desktop # bindsym Mod4+d workspace $ws6; exec firefox -new-window https://riot.im/app bindsym Mod4+k workspace $ws6; exec slack # bindsym Mod4+i workspace $ws6; exec $term -e fish -c 'mosh kmok@$work_laptop_ip -- tmux a -t weechat' diff --git a/dot_config/i3blocks/i3blocks.conf.tmpl b/dot_config/i3blocks/i3blocks.conf.tmpl index a84bb3a..b6a3336 100755 --- a/dot_config/i3blocks/i3blocks.conf.tmpl +++ b/dot_config/i3blocks/i3blocks.conf.tmpl @@ -48,8 +48,8 @@ interval=30 # interval=30 [kraken] -label=ETH -TICKER=ETHUSDC +label=SOL +TICKER=SOLUSD interval=30 # [kraken] @@ -57,45 +57,28 @@ interval=30 # TICKER=SEIUSD # interval=30 -[kraken] -label=SOL -TICKER=SOLUSD -interval=30 - -#[kraken] -#label=APE -#TICKER=APEUSD -#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 PAIR=0x31c0ba10e4e12be6cdceb612e5e829d977532bfc interval=30 -# [dexscreener] -# label=BLAST -# CHAIN=blast -# PAIR=0x9A0AA28d999a21d3cf6F2703CDBba9FeAF4a32F7 -# interval=30 +[kraken] +label=ETH +TICKER=ETHUSDC +interval=30 -# [dexscreener] -# label=FLT -# CHAIN=ethereum -# PAIR=0x983b92EA1F0A20844466f3E4BB988c1dE145293E -# interval=30 +[dexscreener] +label=PENGU +CHAIN=solana +PAIR=B4Vwozy1FGtp8SELXSXydWSzavPUGnJ77DURV2k4MhUV +interval=5 + +#[dexscreener] +#label=LOCK +#CHAIN=solana +#PAIR=AtWMAA6T9t8cq8XCccCFPGDNNQYXhScuNuY6WVRi7FKe +#interval=30 # [ticker] # label=SPY  diff --git a/dot_imwheelrc b/dot_imwheelrc index 9deb261..bea1368 100644 --- a/dot_imwheelrc +++ b/dot_imwheelrc @@ -1,5 +1,7 @@ ".*" /* None, Up, Button4, 3 */ /* None, Down, Button5, 3 */ -None, Up, Button4, .5 -None, Down, Button5, .5 +/* None, Up, Button4, .5 */ +/* None, Down, Button5, .5 */ +None, Up, Button4, .1 +None, Down, Button5, .1 diff --git a/dot_qalcrc b/dot_qalcrc new file mode 100644 index 0000000..5ea9d25 --- /dev/null +++ b/dot_qalcrc @@ -0,0 +1 @@ +decimal comma 1 diff --git a/dot_xinitrc.tmpl b/dot_xinitrc.tmpl index 28a692b..76253ff 100644 --- a/dot_xinitrc.tmpl +++ b/dot_xinitrc.tmpl @@ -14,7 +14,8 @@ xset r rate $XSET_DELAY $XSET_RATE # exec /home/kevin/Downloads/dwm/reload-dwm.sh {{ if eq .chezmoi.hostname "nzxt" }} -dunst & +# dunst & +/usr/lib/notification-daemon-1.0/notification-daemon & compton -b imwheel & numlockx on & diff --git a/scripts/executable_dexscreener b/scripts/executable_dexscreener index 852ccb9..4e5e451 100755 --- a/scripts/executable_dexscreener +++ b/scripts/executable_dexscreener @@ -13,4 +13,6 @@ 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- +elif (( $(echo "$price < 10" | bc -l) )); then + printf "%0.2f\n" "$price" fi diff --git a/scripts/executable_kraken b/scripts/executable_kraken index 31e15e8..4148425 100755 --- a/scripts/executable_kraken +++ b/scripts/executable_kraken @@ -15,6 +15,8 @@ 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/,//' +elif (( $(echo "$price > 100000" | bc -l) )); then + printf "%'0.0f\n" "$price" | sed 's/,//' | cut -c -4 else echo "$price" | cut -c -3 fi