Commit 15d1311
xxwhirlpool
·
2026-01-02 01:48:46 -0500 EST
parent ed00b09
use justfile instead of script for stow, misc
7 files changed,
+16,
-47
+4,
-1
| ... | ... | @@ -123,7 +123,7 @@ fi | |
| 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,6 +134,9 @@ alias icat="kitty +kitten icat" | |
| 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,
-0
| ... | ... | @@ -3569,3 +3569,4 @@ | |
| 3569 | 3569 | 🥹 face holding back tears pleading | |
| 3570 | 3570 | â„¢ trademark tm | |
| 3571 | 3571 | 🫩 wtf | |
| 3572 | + | 💽 minidisc |
+2,
-0
| ... | ... | @@ -1,3 +1,5 @@ | |
| 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 |
+0,
-11
| ... | ... | @@ -1,11 +0,0 @@ | |
| 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,
-0
| ... | ... | @@ -9,6 +9,7 @@ ctrl+alt+p == ~/.local/bin/passmenu | |
| 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 |
A
justfile
+8,
-0
| ... | ... | @@ -0,0 +1,8 @@ | |
| 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 |
D
stow.sh
+0,
-35
| ... | ... | @@ -1,35 +0,0 @@ | |
| 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 |