dots


commit
3bdec71
parent
26d9ca8
author
xxwhirlpool
date
2026-03-25 07:58:11 -0400 EDT
misc
3 files changed,  +9, -9
M config/.local/bin/cpwd
+1, -1
1@@ -1,3 +1,3 @@
2 #!/usr/bin/env bash
3 
4-pwd | tr -d "\n" | copy
5+pwd | tr -d "\n" | tee >(xclip -sel clipboard) && echo -e "\n"
M config/.local/bin/lowerd
+4, -4
 1@@ -6,7 +6,7 @@
 2 #   - `lowerd -i`
 3 
 4 default() {
 5-	tr '[:upper:]' '[:lower:]' | tr -d "\n" | tee >(xclip -selection clipboard)
 6+	tr '[:upper:]' '[:lower:]' | tr -d "\n" | tee >(xclip -selection clipboard) && echo -e "\n"
 7 }
 8 
 9 takearg() {
10@@ -14,11 +14,11 @@ takearg() {
11 }
12 
13 stdinpaste() {
14-	gum write --header="paste text here" | tr '[:upper:]' '[:lower:]' | tr -d "\n" | batcat --paging=never | tee >(xclip -selection clipboard)
15+	gum write --header="paste text here" | tr '[:upper:]' '[:lower:]' | tr -d "\n" | batcat --paging=never | tee >(xclip -selection clipboard) && echo -e "\n"
16 }
17 
18 case "$1" in
19 	"") default ;;
20-	"-i") stdinpaste && echo -e "\n" ;;
21-	*) takearg "$@" && echo -e "\n" ;;
22+	"-i") stdinpaste ;;
23+	*) takearg "$@" ;;
24 esac
M config/.local/bin/upperd
+4, -4
 1@@ -6,7 +6,7 @@
 2 #   - `upperd -i`
 3 
 4 default() {
 5-	tr '[:lower:]' '[:upper:]' | tr -d "\n" | tee >(xclip -selection clipboard)
 6+	tr '[:lower:]' '[:upper:]' | tr -d "\n" | tee >(xclip -selection clipboard) && echo -e "\n"
 7 }
 8 
 9 takearg() {
10@@ -14,11 +14,11 @@ takearg() {
11 }
12 
13 stdinpaste() {
14-	gum write --header="paste text here" | tr '[:lower:]' '[:upper:]' | tr -d "\n" | batcat --paging=never | tee >(xclip -selection clipboard)
15+	gum write --header="paste text here" | tr '[:lower:]' '[:upper:]' | tr -d "\n" | batcat --paging=never | tee >(xclip -selection clipboard) && echo -e "\n"
16 }
17 
18 case "$1" in
19 	"") default ;;
20-	"-i") stdinpaste && echo -e "\n" ;;
21-	*) takearg "$@" && echo -e "\n" ;;
22+	"-i") stdinpaste ;;
23+	*) takearg "$@" ;;
24 esac