dotfiles: leviathan: arch-openbox-20231010

This commit is contained in:
2023-10-10 20:44:53 -05:00
commit 0792b14382
390 changed files with 48601 additions and 0 deletions

15
.local/bin/pst Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
url="https://bin.xstefen.dev"
filepath="$1"
filename=$(basename -- "$filepath")
extension="${filename##*.}"
response=$(curl --data-binary @${filepath:-/dev/stdin} --url $url)
#echo "$url$response"".""$extension" | tee >(xclip -selection clipboard)
pastelink="$url$response"
[ -z "$extension" ] && \
echo "$pastelink" || \
echo "$pastelink.$extension"