Browse Source

Update

master
Kevin Mok 2 weeks ago
parent
commit
c970150de4
Signed by: Kevin-Mok GPG Key ID: FB0DA56BEB5D98F3
  1. 11
      aliases/key_aliases.tmpl
  2. 13
      aliases/key_dirs.tmpl
  3. 2
      aliases/key_files.tmpl
  4. 20
      dot_config/fish/config.fish.tmpl
  5. 3
      dot_config/fish/functions/conda_activate.fish
  6. 3
      dot_config/fish/functions/ipad/rsync-ipad-vid.fish
  7. 4
      dot_config/ranger/rc.conf.tmpl
  8. 6
      dot_taskrc
  9. 3
      dot_xinitrc.tmpl

11
aliases/key_aliases.tmpl

@ -33,7 +33,7 @@ whi "whereis"
# nvt "nvidia-settings --assign CurrentMetaMode='DVI-I-1: nvidia-auto-select +0+0 {ForceCompositionPipeline=On}, HDMI-0: nvidia-auto-select +3840+0 {ForceCompositionPipeline=On}'"
xra "xrandr --auto"
xrs "xrandr --auto && xrandr --output HDMI-0 --right-of DVI-I-1"
xrs "xrandr --auto && xrandr --output HDMI-0 --right-of DVI-D-0"
xrn "xrandr --output HDMI-0 --rotate normal && grep wallpaper ~/.cache/wal/colors.sh | cut -d\' -f2 | xargs wal -i > /dev/null"
xrr "xrandr --output HDMI-0 --rotate right && grep wallpaper ~/.cache/wal/colors.sh | cut -d\' -f2 | xargs wal -i > /dev/null"
@ -134,6 +134,8 @@ ssaw "ssh -t kevin@3.147.85.36 tmux a"
# postgres ssh tunnel
sdt "ssh kevin@165.22.239.234 -L 5433:localhost:5432"
ssu "ssh -p 399 kevin@192.168.0.100"
# ]]] ssh #
wh "watch"
@ -192,7 +194,7 @@ rsy "rsync --ignore-existing -Ptr"
lhd "sudo fdisk -l"
# get disc space for mounted drives
# ds "df -h | tee >(head -n 1) >(grep sd) >/dev/null"
dsp "df -h | head -n 1 && df -h | grep sd"
dsp "df -h | head -n 1 && df -h | grep nvm"
chownw "sudo chown -R kevin:wheel"
chwnm "sudo chown -R kevin:wheel /run/media/{{ .chezmoi.username }}"
# cd into backup folder and show backup sizes
@ -207,7 +209,8 @@ uzl "unzip -l"
#s "systemctl suspend"
#s "xset dpms force off"
#s "~/linux-config/scripts/executable_dual-monitor-slideshow"
s "fdfind -t f -e jpg -e png -e jpeg -e gif -e webp . /mnt/linux-files-2/Pictures/hevin | shuf | sxiv -S 5 -s f -i &"
s "systemctl suspend"
ss "xset s off -dpms && fdfind -t f -e jpg -e png -e jpeg -e gif -e webp . ~/Pictures/hevin | shuf | sxiv -S 5 -s f -i &"
# sl "i3lock-fancy && systemctl suspend"
# so "xset dpms force off"
xx "exit"
@ -1074,7 +1077,7 @@ xt "npm run type-check | tee logs/type-check.log"
#xsv "npx nodemon"
#xsv "nodemon --exec tsx src/server.ts"
xsv "npx nodemon --exitcrash --exec tsx src/server.ts"
cl "npx ts-node src/cli.ts list-nfts -p 5 -t 100"
#cl "npx ts-node src/cli.ts list-nfts -p 5 -t 100"
clw "watch npx ts-node src/cli.ts list-nfts -p 5 -t 100"
vp "vercel --prod"

13
aliases/key_dirs.tmpl

@ -8,7 +8,7 @@ cfg ~/.config
cfgf ~/.config/fish
ch ~/Documents/chat
dc ~/Documents/chat/discord
da /mnt/ipad/DCIM/101APPLE
da /mnt/ipad/DCIM/103APPLE
dl ~/Downloads
# dw ~/dwm
D ~/Documents
@ -29,10 +29,11 @@ pd ~/.password-store
pfp /mnt/linux-files-2/arch-2/full/home/kevin/Pictures/profile-pics
pfpp ~/Pictures/profile-pics/profiles-by-moto
P ~/Pictures
ssu ~/Pictures/screenshots/desktop/unsorted
ssus ~/Pictures/screenshots/desktop/unsorted
std ~/st
# tm /tmp
tm ~/tmp
V ~/Videos
{{ if and (eq .chezmoi.username "root") (eq .linux_os "debian") }}
ng /etc/nginx/sites-available
@ -78,10 +79,11 @@ b1 ~/coding/mf-site/themes/base16
ada ~/coding/ada-mario
# ft ~/coding/face-tracker
#hv ~/Documents/hevin
hv /mnt/linux-files-2/Pictures/hevin
#hv /mnt/linux-files-2/Pictures/hevin
hv ~/Pictures/hevin
hvs ~/Documents/hevin/shopping
j ~/Documents/journal
jt ~/Documents/journal/todo/24
jt ~/Documents/journal/todo/25
# lh ~/Documents/listening-history
mmd ~/coding/move-mouse-with-head
mh ~/coding/mf-site/layouts
@ -147,7 +149,7 @@ Css ~/Pictures/screenshots/mobile/codm
# fortnite [[[ #
fn ~/Documents/fortnite
#fn ~/Documents/fortnite
fnc /mnt/linux-files/Videos/yt/fortnite/clips/4
fni /mnt/ipad/DCIM/100APPLE
#fnm ~/Documents/fortnite/pics/maps
@ -157,6 +159,7 @@ fns ~/Documents/fortnite/stats/api
fnsp ~/Documents/fortnite/stats/pics
fnv /mnt/linux-files/Videos/personal-fortnite-games/review
fnv2 /mnt/linux-files-2/Videos/ipad/fortnite/name
fn ~/Videos/fortnite
tcd /mnt/linux-files/Videos/yt/fortnite/clips/twitch-clip-downloader
# ]]] fortnite #

2
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/25/2.md
jt ~/Documents/journal/todo/25/4.md
k ~/linux-config/dot_config/kitty/kitty.conf
lh ~/Documents/listening-history/polarbier.csv
mc ~/coding/mf-site/assets/sass/main.scss

20
dot_config/fish/config.fish.tmpl

@ -71,7 +71,7 @@ set -x HASTE_SERVER https://pste.gq
set -x LD_LIBRARY_PATH $LD_LIBRARY_PATH /usr/local/lib /usr/local/lib64
set -x GOPATH ~/go
# set -x PATH $GRAALVM_BIN $PATH ~/.local/bin ~/scripts ~/scripts/colors ~/go/bin ~/.minetest/minetest/bin ~/.gem/ruby/2.6.0/bin
set -x PATH $PATH ~/.local/bin ~/scripts ~/scripts/colors $GOPATH/bin ~/.minetest/minetest/bin ~/.gem/ruby/*/bin ~/.yarn/bin ~/.linuxbrew/bin ~/.fnm/current/bin ~/.nimble/bin
set -x PATH $PATH ~/.local/bin ~/scripts ~/scripts/colors $GOPATH/bin ~/.minetest/minetest/bin ~/.gem/ruby/*/bin ~/.yarn/bin ~/.linuxbrew/bin ~/.fnm/current/bin ~/.nimble/bin ~/miniconda3/bin
set -x PKG_CONFIG_PATH $PKG_CONFIG_PATH /usr/lib/pkgconfig
# Java [[[ #
@ -142,7 +142,7 @@ set -x FLASK_DEBUG 1
set -x FULLNODE_API_INFO wss://api.chain.love
set -x IPAD_IMG 18
set -x IPAD_IMG 34
#source /home/kevin/coding/aws.fish
@ -226,7 +226,7 @@ abbr bun "backup nzxt"
abbr bupp "backup-phone-pics"
#abbr ca "cad-to-us"
abbr cccs "sync-alt-cal class"
#abbr cl "clip"
abbr cl "clip"
#abbr cli "clip-ipad"
abbr cpc "copy cat"
abbr cpe "copy echo"
@ -298,6 +298,7 @@ abbr tan "tmux-attach nft"
abbr tan2 "tmux-attach nft-2"
abbr tao "tmux-attach obs"
abbr thes "thesaurus"
abbr ubs "ubuntu-start"
# abbr usc "us-to-cad"
#abbr us "us-to-cad"
abbr ut "unix-timestamp"
@ -334,3 +335,16 @@ cat /home/kevin/.cache/wal/sequences
#ssh-add ~/.ssh/ai16z-test.pem > /dev/null
# keychain --agents ssh id_rsa
#set -Ux SSH_AUTH_SOCK (keychain --eval --agents ssh id_rsa | grep setenv | sed -E 's/setenv (\S+) (\S+);/\2/')
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
#if test -f /home/kevin/miniconda3/bin/conda
#eval /home/kevin/miniconda3/bin/conda "shell.fish" "hook" $argv | source
#else
#if test -f "/home/kevin/miniconda3/etc/fish/conf.d/conda.fish"
#. "/home/kevin/miniconda3/etc/fish/conf.d/conda.fish"
#else
#set -x PATH "/home/kevin/miniconda3/bin" $PATH
#end
#end
# <<< conda initialize <<<

3
dot_config/fish/functions/conda_activate.fish

@ -0,0 +1,3 @@
function conda_activate
source ~/miniconda3/bin/activate $argv
end

3
dot_config/fish/functions/ipad/rsync-ipad-vid.fish

@ -1,3 +1,4 @@
function rsync-ipad-vid
rsync --ignore-existing -Ptr IMG_$IPAD_IMG$argv[1].MP4 /mnt/linux-files-2/Videos/ipad/fortnite/name
#rsync --ignore-existing -Ptr IMG_$IPAD_IMG$argv[1].MP4 /mnt/linux-files-2/Videos/ipad/fortnite/name
rsync --ignore-existing -Ptr IMG_$IPAD_IMG$argv[1].MP4 ~/Videos/fortnite/
end

4
dot_config/ranger/rc.conf.tmpl

@ -705,13 +705,15 @@ map v. shell $EDITOR %f
source {{ .chezmoi.homeDir }}/.config/ranger/key_mappings.conf
map dg shell dragon-drop -a -x %p
#map dg shell dragon-drop -a -x %p
map dg shell dragon -x %p
# map <C-d> shell dragon-drag-and-drop -a -x %p
# a plugin that adds file glyphs / icon support to Ranger:
# https://github.com/alexanderjeurissen/ranger_devicons
default_linemode devicons
set clipboard_program xclip
set clipboard_cmd xclip -selection clipboard
map tsx set editor nvim
set editor nvim

6
dot_taskrc

@ -82,10 +82,12 @@ context.mny=project:mny
context.pey=project:pey
context.sch=project:sch
#context.sniper=project:sniper project:job
context.sniper=(project:sniper or project:job)
#context.sniper=(project:sniper or project:job)
context.linux=project:linux
#context=none
context=sniper
#context=sniper
context=linux
# context=home
# context=out
#context=sch

3
dot_xinitrc.tmpl

@ -18,7 +18,8 @@ xset r rate $XSET_DELAY $XSET_RATE
picom &
imwheel &
numlockx on &
start-pulseaudio-x11 &
#start-pulseaudio-x11 &
#sudo alsa force-reload
# wal -i "$(/home/kevin/scripts/shuffler \"$HOME/Pictures/Backgrounds/dim/non-editing\")" && /home/kevin/st/make-st.sh &
# wal -i $(/home/kevin/scripts/shuffler "$HOME/Pictures/Backgrounds/dim/non-editing") &

Loading…
Cancel
Save