use justfile instead of script for stow, misc

katproto.girlonthemoon.xyz 15d13118 ed00b091

verified
Changed files
+16 -47
config
.config
shmoji
.local
bin
qr
+4 -1
config/.bashrc-pc
··· 123 123 # general 124 124 alias nano=micro 125 125 alias sudo="sudo TERMINFO=\"$TERMINFO\" " 126 - alias fd='fdfind' 126 + alias fd="fdfind" 127 127 alias neofetch="hyfetch" 128 128 alias fastfetch="hyfetch" 129 129 alias bat="batcat" ··· 134 134 alias ps="ps auxww" 135 135 alias dd="ask dd" 136 136 alias copy="xclip -sel clipboard" 137 + alias freeze="freeze -c user $1" 138 + alias glow="glow -p $1" 139 + alias qrcode="qrencode -t ansiutf8 $1" 137 140 138 141 # lazy ass way for me to get my idol mp3s from youtube 139 142 # usage: ytmp3 url
+1
config/.config/shmoji/emojis.txt
··· 3569 3569 🥹 face holding back tears pleading 3570 3570 ™ trademark tm 3571 3571 🫩 wtf 3572 + 💽 minidisc
+2
config/.crontab-pc
··· 1 1 0 */3 * * * vdirsyncer sync 2 2 3 3 0 0 * * * crontab -l > /home/kat/dotfiles/config/.crontab-pc 4 + 5 + 0 0 * * * cat /home/kat/.bashrc > /home/kat/dotfiles/config/.bashrc-pc
-11
config/.local/bin/qr
··· 1 - #!/usr/bin/env bash 2 - 3 - if [ $# -eq 0 ]; then 4 - echo "Usage: qr [string]" 5 - exit 1 6 - fi 7 - 8 - TMPFILE="/tmp/$(openssl rand -hex 8)_qr.png" 9 - STRQR="$1" 10 - 11 - echo "$STRQR" | qrencode -s 10 -o "$TMPFILE" && kitty +kitten icat "$TMPFILE"
+1
config/.shortcutkeys
··· 9 9 ctrl+alt+[ == ~/.local/bin/pick 10 10 11 11 ctrl+win+t == ~/.local/bin/tempmenu menu 12 + ctrl+win+= == ~/.local/bin/mathcalc 12 13 13 14 ctrl+prntscrn == ~/.local/bin/screenshotpick 14 15
+8
justfile
··· 1 + local: 2 + stow -v -t ~ "config" --adopt 3 + stow -v -t ~ "scripts" --adopt 4 + 5 + pull: 6 + git pull bytes main 7 + stow -v -t ~ "config" --adopt 8 + stow -v -t ~ "scripts" --adopt
-35
stow.sh
··· 1 - #!/usr/bin/env bash 2 - 3 - updategit() { 4 - echo "pulling from git..." | gum style --foreground "#f4b8e4" --border none 5 - git pull bytes main 6 - echo "git pull complete!" | gum style --foreground "#f4b8e4" --border none 7 - echo "stowing your shit..." | gum style --foreground "#f4b8e4" --border none 8 - stow -v -t ~ "config" --adopt 9 - stow -v -t ~ "scripts" --adopt 10 - echo "done ^_^" | gum style --foreground "#f4b8e4" --border none 11 - } 12 - 13 - localstow() { 14 - stow -v -t ~ "config" --adopt 15 - stow -v -t ~ "scripts" --adopt 16 - } 17 - 18 - usage() { 19 - if [ $# -eq 0 ]; then 20 - echo -e "Usage: stow.sh [OPTIONS]\n" 21 - echo -e "pull from git ,[-L|--local]\nsymlink local files ,[-U|--update]" | column -t -s',' 22 - fi 23 - } 24 - 25 - case "$1" in 26 - "" | "-h" | "--help" | "help") 27 - usage 28 - ;; 29 - "-L" | "--local") 30 - localstow 31 - ;; 32 - "-U" | "--update") 33 - updategit 34 - ;; 35 - esac