dots


commit
11462a6
parent
189ace1
author
xxwhirlpool
date
2026-03-04 18:45:00 -0500 EST
mksh, snsclip, stripexif, ytmp3
5 files changed,  +19, -10
M config/.bashrc-pc
+0, -4
 1@@ -138,10 +138,6 @@ alias glow="glow -p"
 2 alias qrcode="qrencode -t ansiutf8"
 3 alias ffmpeg="ffmpeg -hide_banner"
 4 alias open="xdg-open &> /dev/null"
 5-
 6-# lazy ass way for me to get my idol mp3s from youtube
 7-# usage: ytmp3 url
 8-alias ytmp3="yt-dlp -f ba -x --audio-format mp3"
 9  
10 # weather stuff
11 alias wttr="curl https://wttr.in/nyc?F0ASu"
M config/.local/bin/mksh
+5, -3
 1@@ -7,12 +7,14 @@ if [ $# -eq 0 ]; then
 2 	exit 1
 3 fi
 4 
 5+LCLBIN_PATH="/home/kat/dotfiles/config/.local/bin"
 6+
 7 if [[ "$1" == "--bin" ]]; then
 8 	echo "#!/usr/bin/env bash" > "$2"
 9 	chmod u+x "$2"
10-	mv "$2" "/home/kat/dotfiles/config/.local/bin"
11-	micro "$2"
12-elif [[ "$!" != "--bin" ]]; then
13+	mv "$2" "$LCLBIN_PATH"
14+	micro "$LCLBIN_PATH/$2"
15+elif [[ "$1" != "--bin" ]]; then
16 	echo "#!/usr/bin/env bash" > "$1"
17 	chmod u+x "$1"
18 	micro "$1"
M config/.local/bin/snsclip
+2, -1
1@@ -14,4 +14,5 @@ if [ $# -eq 0 ]; then
2 	exit 1
3 fi
4 
5-yt-dlp -f "ba+bv*[height<=1080p]" -o "$FILE_OUT_NAME" "$URL" --merge-output-format mp4
6+# best audio + best video under 1080p (excl. AI upscale) && incl. file extension in output
7+yt-dlp -f "ba+bv*[height<=1080p][format_id!*=-sr]" -o "$FILE_OUT_NAME.%(ext)s" "$URL" --merge-output-format mp4
M config/.local/bin/stripexif
+2, -2
 1@@ -5,8 +5,8 @@ if ! test -x "$(command -v exiftool)"; then
 2 	exit 1
 3 fi
 4 
 5-if [ "$1" == "" ]; then
 6-	echo "please specify an image path"
 7+if [ $# -eq 0 ]; then
 8+	echo "Usage: stripexif [FILENAME]"
 9 	exit 1
10 else
11 	exiftool -all:all= -tagsfromfile @ -exif:Orientation "$1"
A config/.local/bin/ytmp3
+10, -0
 1@@ -0,0 +1,10 @@
 2+#!/usr/bin/env bash
 3+#
 4+# lazy ass way to get my idol MP3s
 5+
 6+if [[ $# -eq 0 ]]; then
 7+	echo "Usage: ytmp3 [URL]"
 8+	exit 1
 9+fi
10+
11+yt-dlp -f ba -x --audio-format mp3 -o "%(title)s.%(ext)s" "$1"