7 Commits

Author SHA1 Message Date
d405f264db Pre-Ubuntu install 2025-01-17 11:43:32 -05:00
f9c5f9afe0 i3 Metamask shortcut 2025-01-14 14:48:37 -05:00
072980eaf1 Slow down scroll 2024-11-02 07:51:24 -04:00
adf0cb89b9 Fix Vim commenting 2024-10-30 10:42:09 -04:00
d56c047782 Vim commenting 2024-09-11 07:14:22 -04:00
71b0aa5ada Vim surround (brackets) 2024-09-03 14:05:12 -04:00
11681ecc9f Merge with single-screen branch 2024-08-27 10:45:29 -04:00
20 changed files with 137 additions and 100 deletions

View File

@@ -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"
@@ -335,6 +336,7 @@ mst "sudo rm ~/st/config.h && sudo bear make -C ~/st install"
# mst "sudo ~/st/make-st.sh"
mlf2 "sudo mount /dev/sdd1 /mnt/linux-files-2"
bkuh "sudo rsync -PraAX --exclude-from='/home/kevin/txt/exclude-dirs-backup-full.txt' /home '/mnt/linux-files-2/arch-2/full'"
kgpg "kill -9 gpg-agent && gpg-agent"
@@ -417,6 +419,7 @@ clc "cloc . --vcs=git"
cm "compton &"
cv "cava"
dg "dragon-drop -x"
dgh "dragon-drop -x ."
fx "firefox -P"
fxd "firefox -P default"
fxw "firefox -P work"
@@ -434,6 +437,7 @@ htm "htop -s PERCENT_MEM"
ia "sxiv -a"
it "sxiv -t *"
kill "kill -9"
#kal "killall"
ka "killall"
kc "killall chromium"
kcm "killall compton"
@@ -458,8 +462,10 @@ 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 &"
p3 "python3"
pdft "pdftotext"
pdu "pdfunite"
@@ -534,8 +540,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 >"
@@ -1029,7 +1036,7 @@ cpsdv "cp * /home/kevin/Documents/stardew-valley-sdv-saves/hevintales"
# ]]] games #
# school [[[ #
# work [[[ #
# basic
# wlf "watson log --all --tag=final"
@@ -1037,13 +1044,10 @@ cpsdv "cp * /home/kevin/Documents/stardew-valley-sdv-saves/hevintales"
gpa "column -ts',' ~/Documents/gpa.md"
ssc "mosh mokkar@teach.cs.utoronto.ca"
zs "zathura --fork syllabus.pdf"
ttlo "timetrace start look@job"
ttle "timetrace start leetcode@job"
pvabn "npm run serve:localhost"
pvafn "npm run start:localhost"
ssv "ssh -p 3022 kevin@127.0.0.1"
# ]]] school #
# ]]] work #
# red-hat [[[ #
@@ -1076,7 +1080,7 @@ ghr "github-release"
do "docker"
db "docker build"
dc "docker-compose"
dcm "docker-compose"
dcu "docker-compose up -d"
dcd "docker-compose down"
di "docker image"
@@ -1095,11 +1099,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"
@@ -1234,6 +1238,7 @@ hu "helm upgrade"
# ]]] helm #
zr "zathura --fork ~/coding/mf-site/static/pdf/kevin-mok-resume.pdf"
zra "zathura --fork ~/coding/mf-site/static/pdf/kevin-mok-resume-aws.pdf"
zrw "zathura --fork ~/coding/mf-site/static/pdf/kevin-mok-resume-web-dev.pdf"
# ]]] red-hat #

View File

@@ -7,6 +7,7 @@ cf ~/linux-config/dot_config
cfg ~/.config
cff ~/.config/fish
ch ~/Documents/chat
dc ~/Documents/chat/discord
da /mnt/ipad/DCIM/101APPLE
dl ~/Downloads
# dw ~/dwm
@@ -25,6 +26,7 @@ me /run/media/kevin
o /
pd ~/.password-store
pfp ~/Pictures/profile-pics
pfpp ~/Pictures/profile-pics/profiles-by-moto
P ~/Pictures
ssu ~/Pictures/screenshots/desktop/unsorted
std ~/st
@@ -274,6 +276,9 @@ ltc ~/coding/leetcode
jf ~/school/job-fair
jh ~/school/job-hunt
jhi ~/school/job-hunt/interview-questions
jhig ~/school/job-hunt/interview-questions/grafana
el ~/coding/eliza
# ]]] sch #

View File

@@ -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
@@ -97,6 +97,7 @@ sdv ~/Documents/stardew-valley-sdv/notes.md
snp ~/Documents/marvel-snap/strats.md
tc /mnt/linux-files/Videos/yt/fortnite/clips/twitch-clip-downloader/clips.txt
tdb ~/Documents/journal/todo/b.md
jop ~/Documents/journal/personal/jop.md
# ]]] gaming #
@@ -116,13 +117,13 @@ 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 #
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

View File

@@ -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

11
dot_Xmodmap-vm Normal file
View File

@@ -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

View File

@@ -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 [[[ #
@@ -307,5 +309,5 @@ abbr xya "export-pkgs"
# task sync > /dev/null 2>&1
source /home/kevin/.config/fish/key_abbr.fish > /dev/null
wal -r
cat /home/kevin/.cache/wal/sequences
# ~/scripts/xmodmap-custom

View File

@@ -0,0 +1,3 @@
function qalc-update
qalc -e "$argv[1]USD to CAD"
end

View File

@@ -1,16 +1,15 @@
# startup [[[ #
set $term kitty
set $term_alt urxvt
# set $term urxvt
# set $term_alt kitty
# set $term st
# set $term_alt urxvt
{{ if eq .chezmoi.hostname "x1-carbon" }}
set $term urxvt
set $term_alt kitty
# set $term_alt st
# 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
@@ -24,7 +23,8 @@ exec wal -i $(/home/kevin/scripts/shuffler "$HOME/Pictures/Backgrounds/dim/editi
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 discord
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 #
@@ -58,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
@@ -420,10 +421,11 @@ 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+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'
bindsym Mod4+i workspace $ws6; exec $term -e fish -c 'mosh kmok@$work_laptop_ip -- tmux a -t weechat'
# bindsym Mod4+i workspace $ws6; exec $term -e fish -c 'mosh kmok@$work_laptop_ip -- tmux a -t weechat'
# bindsym Mod4+i workspace $ws6; exec $term -e fish -c 'tmux-attach weechat'
# ]]] ws6 #
@@ -596,6 +598,7 @@ bar {
# status_command i3blocks -c ~/.config/i3blocks/i3blocks.conf
status_command 2>/tmp/i3blocks.err i3blocks -vvv -c ~/.config/i3blocks/i3blocks.conf | tee /tmp/i3blocks.out
output $main
# output $secondary
wheel_up_cmd nop
wheel_down_cmd nop
}
@@ -605,12 +608,13 @@ bar {
# secondary bar [[[ #
bar {
# output $main
output $secondary
{{ if eq .chezmoi.hostname "x1-carbon" }}
font pango:$sb_font 18
{{ else }}
font pango:$sb_font 21
# font pango:$sb_font 20
# font pango:$sb_font 21
font pango:$sb_font 20
# font pango:$sb_font 17
{{ end }}
# output $main

View File

@@ -26,12 +26,12 @@ interval=5
[cpu_usage]
label=
interval=5
interval=2
[memory]
label=
# color=#3da061
interval=5
interval=2
{{ end }}
# ]]] sys.monitoring #

View File

@@ -43,20 +43,15 @@ TICKER=BTCUSDC
interval=30
# [ticker]
# label=BTC
# TICKER=BTC-USD
# label=btc
# ticker=btc-usd
# interval=30
[kraken]
label=ETH
TICKER=ETHUSDC
label=SOL
TICKER=SOLUSD
interval=30
# [kraken]
# label=SOL
# TICKER=SOLUSD
# interval=30
# [kraken]
# label=SEI
# TICKER=SEIUSD
@@ -68,22 +63,26 @@ CHAIN=ethereum
PAIR=0x31c0ba10e4e12be6cdceb612e5e829d977532bfc
interval=30
# [dexscreener]
# label=BLAST
# CHAIN=blast
# PAIR=0x9A0AA28d999a21d3cf6F2703CDBba9FeAF4a32F7
# interval=30
[kraken]
label=ETH
TICKER=ETHUSDC
interval=30
[dexscreener]
label=LOCK
label=PENGU
CHAIN=solana
PAIR=AtWMAA6T9t8cq8XCccCFPGDNNQYXhScuNuY6WVRi7FKe
PAIR=B4Vwozy1FGtp8SELXSXydWSzavPUGnJ77DURV2k4MhUV
interval=5
[kraken]
label=AVAX
TICKER=AVAXUSD
interval=30
#[dexscreener]
# label=FLT
# CHAIN=ethereum
# PAIR=0x983b92EA1F0A20844466f3E4BB988c1dE145293E
#label=LOCK
#CHAIN=solana
#PAIR=AtWMAA6T9t8cq8XCccCFPGDNNQYXhScuNuY6WVRi7FKe
#interval=30
# [ticker]
@@ -114,16 +113,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 +156,7 @@ interval=5
# time [[[ #
[calendar]
interval=30
interval=5
label=
# {{ if eq .chezmoi.hostname "nzxt" }}
# DATEFMT=+%H:%M
@@ -191,9 +190,9 @@ WIDTH=220
# name [[[ #
[name]
label=
interval=30
# [name]
# label=
# interval=30
{{ end }}
# ]]] name #

View File

@@ -15,13 +15,17 @@ Ctrl+RIGHT no-osd seek 0.2 exact
Ctrl+LEFT no-osd seek -0.2 exact
Shift+RIGHT no-osd seek 1 exact
Shift+LEFT no-osd seek -1 exact
RIGHT seek 3 exact
LEFT seek -3 exact
RIGHT seek 5 exact
LEFT seek -5 exact
UP seek 10 exact
DOWN seek -10 exact
Shift+UP seek 60 exact
Shift+DOWN seek -60 exact
# zoom
Ctrl+- add video-zoom -0.25
Ctrl+= add video-zoom 0.25
# mark
m revert-seek mark # mark position for revert-seek
Shift+m revert-seek

View File

@@ -96,8 +96,11 @@ handle_extension() {
jq --color-output '.' "${FILE_PATH}" && exit 5
python -m json.tool -- "${FILE_PATH}" && exit 5
# txt)
# cat "${FILE_PATH}" && exit 5
js)
bat "${FILE_PATH}" && exit 5
txt)
bat "${FILE_PATH}" && exit 5
esac
}

View File

@@ -668,8 +668,8 @@ set preview_images true
# The same as urxvt but utilizing not only the preview pane but the
# whole terminal window.
# set preview_images_method w3m
# set preview_images_method ueberzug
set preview_images_method kitty
set preview_images_method ueberzug
# set preview_images_method kitty
# set preview_images_method urxvt
# set preview_images_method urxvt-full

View File

@@ -1,5 +1,7 @@
".*"
/* None, Up, Button4, 3 */
/* None, Down, Button5, 3 */
None, Up, Button4, 1
None, Down, Button5, 1
/* None, Up, Button4, .5 */
/* None, Down, Button5, .5 */
None, Up, Button4, .1
None, Down, Button5, .1

1
dot_qalcrc Normal file
View File

@@ -0,0 +1 @@
decimal comma 1

View File

@@ -57,6 +57,7 @@ autocmd CursorHold * if !bufexists("[Command Line]") | checktime | endif
" commands for file types [[[ "
filetype plugin indent on
autocmd BufNewFile,BufRead .* set syntax=sh
autocmd BufRead,BufNewFile /tmp/calcurse*,~/.calcurse/notes/* set filetype=markdown
autocmd FileType *css,gitcommit,haskell,htmldjango,html,graphql,javascript,javascriptreact,json,lisp,markdown,
@@ -233,27 +234,8 @@ Plug 'Kevin-Mok/vim-snippets'
Plug 'ervandew/supertab'
" make YCM compatible with UltiSnips (using supertab)
let g:ycm_key_list_select_completion = ['<C-n>', '<Down>']
let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>']
let g:SuperTabDefaultCompletionType = '<C-n>'
" easily comment/uncomment lines
Plug 'scrooloose/nerdcommenter'
let g:NERDTrimTrailingWhitespace = 1
let g:NERDSpaceDelims = 1
" add quotes/brackets around chunks of text easily
Plug 'tpope/vim-surround'
nmap S ys
" navigate around file easily and precisely
Plug 'easymotion/vim-easymotion'
map <Space> <Plug>(easymotion-prefix)
" status bar displaying various info about the current buffer
Plug 'vim-airline/vim-airline'
let g:airline_section_c = '%F'
Plug 'vim-airline/vim-airline-themes'
let g:airline_powerline_fonts = 1
let g:airline_theme='supernova'
" continue Markdown lists when started
" arc
@@ -360,6 +342,9 @@ Plug 'mlaursen/vim-react-snippets', { 'branch': 'main' }
Plug 'cristianoliveira/vim-react-html-snippets'
Plug 'jidn/vim-dbml'
" Plug 'FuDesign2008/emoji-snippets.vim'
Plug 'tpope/vim-surround'
" Plug 'tpope/vim-commentary'
Plug 'preservim/nerdcommenter'
" ]]] vim-plug "
" Mappings [[[ "
@@ -465,7 +450,7 @@ nnoremap <leader>m :vert Man
" apply normal command to selection
vnoremap <leader>n q:anorm
" turn off autoformat"
nnoremap <leader>na :set spell spelllang=en_us formatoptions=cjMqtvw<CR>
" nnoremap <leader>na :set spell spelllang=en_us formatoptions=cjMqtvw<CR>
nnoremap <leader>nt :NERDTree<CR>
" check if in neovim
nnoremap <leader>nv :echo has('nvim')<CR>

View File

@@ -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 &

View File

@@ -11,4 +11,8 @@ 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-
elif (( $(echo "$price < 10" | bc -l) )); then
printf "%0.2f\n" "$price"
fi

View File

@@ -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

5
txt/terminal-art.txt Normal file
View File

@@ -0,0 +1,5 @@
- cmatrix
- pipes.sh
- jp2a
- {pacman,invaders,colors}.sh, c screenfetch, archy, toilet/figlet, doge, etc.
- cbonsai