dots


commit
a4c9080
parent
93f30dc
author
xxwhirlpool
date
2026-03-10 09:10:49 -0400 EDT
misc; rework lowerd & upperd to take args
9 files changed,  +66, -9
M config/.bashrc-pc
+1, -0
1@@ -152,6 +152,7 @@ alias gyolo="git add . && git commit -m 'yolo'"
2 alias gitd="git diff --staged"
3 alias gdiff="gitd"
4 alias gits="git status"
5+alias gita="git add ."
6 alias pusheu="git push bytes main && cd /home/kat/Documents/Git/-mine/eunoia-astro/src/utils && node git-changelog.js"
7 
8 # vpn split tunnel aliases based on a small script @ ~/.local/bin/mvpn
M config/.config/senpai/highlight
+7, -1
 1@@ -1,3 +1,9 @@
 2 #!/usr/bin/env bash
 3+#
 4+# copied from senpai(5) man page
 5 
 6-notify-send "senpai" "New message from $SENDER"
 7+escape() {
 8+	printf "%s" "$1" | sed 's#\\#\\\\#g'
 9+}
10+
11+notify-send "[$BUFFER] $SENDER:" "$(escape "$MESSAGE")"
M config/.config/senpai/senpai.scfg
+1, -0
1@@ -6,4 +6,5 @@ on-highlight-path "/home/kat/.config/senpai/highlight"
2 colors {
3 	nicks self purple
4 	unread purple
5+	prompt green
6 }
M config/.local/bin/lowerd
+22, -1
 1@@ -1,3 +1,24 @@
 2 #!/usr/bin/env bash
 3+#
 4+# usage:
 5+#   - `echo "EXAMPLE" | lowerd`
 6+#   - `lowerd "EXAMPLE"`
 7+#   - `lowerd -i`
 8 
 9-tr '[:upper:]' '[:lower:]'
10+default() {
11+	tr '[:upper:]' '[:lower:]' | tee >(xclip -selection clipboard)
12+}
13+
14+takearg() {
15+	echo "$@" | default
16+}
17+
18+stdinpaste() {
19+	gum write --header="paste text here" | tr '[:upper:]' '[:lower:]' | batcat --paging=never | tee >(xclip -selection clipboard)
20+}
21+
22+case "$1" in
23+	"") default ;;
24+	"-i") stdinpaste ;;
25+	*) takearg "$@" ;;
26+esac
M config/.local/bin/mini_timer
+1, -1
1@@ -1,7 +1,7 @@
2 #!/bin/bash
3 
4 notif() {
5-	notify-send "'$time' timer done!"
6+	notify-send "$time timer done!"
7 	aplay -q /usr/share/sounds/sound-icons/start
8 	spd-say -t female3 -r +25 "timer done!"
9 }
M config/.local/bin/stripexif
+2, -2
1@@ -8,6 +8,6 @@ fi
2 if [[ $# -eq 0 ]]; then
3 	echo "Usage: stripexif [FILENAME]"
4 	exit 1
5-else
6-	exiftool -all:all= -tagsfromfile @ -exif:Orientation "$1"
7 fi
8+
9+exiftool -all:all= -tagsfromfile @ -exif:Orientation "$1"
A config/.local/bin/strtquote
+7, -0
1@@ -0,0 +1,7 @@
2+#!/usr/bin/env bash
3+
4+stdinpaste() {
5+	gum write --header="paste smart quote shit here" | sed 's/[“”]/"/g; s/[‘’]/'"'"'/g' | batcat --paging=never
6+}
7+
8+stdinpaste
M config/.local/bin/upperd
+22, -1
 1@@ -1,3 +1,24 @@
 2 #!/usr/bin/env bash
 3+#
 4+# usage:
 5+#   - `echo "EXAMPLE" | upperd`
 6+#   - `upperd "EXAMPLE"`
 7+#   - `upperd -i`
 8 
 9-tr '[:lower:]' '[:upper:]'
10+default() {
11+	tr '[:lower:]' '[:upper:]' | tee >(xclip -selection clipboard)
12+}
13+
14+takearg() {
15+	echo "$@" | default
16+}
17+
18+stdinpaste() {
19+	gum write --header="paste text here" | tr '[:lower:]' '[:upper:]' | batcat --paging=never | tee >(xclip -selection clipboard)
20+}
21+
22+case "$1" in
23+	"") default ;;
24+	"-i") stdinpaste ;;
25+	*) takearg "$@" ;;
26+esac
M config/.local/bin/vidtools
+3, -3
 1@@ -1,4 +1,4 @@
 2-#!/bin/bash
 3+#!/usr/bin/env bash
 4 
 5 avi2mkv() {
 6 	for f in *.avi; do ffmpeg -fflags +genpts -i "$f" -c:v copy -c:a copy -c:s copy "${f%.*} AVI2MKV.mkv" || break; done
 7@@ -20,11 +20,11 @@ vidhash() {
 8 	# borrowed from my buddy neckspike:
 9 	# https://pastebin.com/mg3CVDiU
10 	for f in *.mkv; do
11-		hash=$(crc32 "$f")
12+		hash=$(crc32 "$f" | tr '[:lower:]' '[:upper:]')
13 		ext="${f##*.}"
14 		newname="${f%.*} [$hash]".$ext
15 
16-		gum confirm "are you sure you want to rename?" --default=yes --timeout=3s && mv "$f" "$newname" && echo -e "new name:\n$newname"|| echo -e "printing names instead:\n$newname"
17+		gum confirm "are you sure you want to rename?" --default=yes --timeout=2s && mv "$f" "$newname" && echo -e "new name:\n$newname"|| echo -e "printing names instead:\n$newname"
18 	done
19 }
20