From 367c09300fabe4684fb02ead024b2df7f5233971 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Wed, 23 Nov 2022 22:50:53 -0500 Subject: [PATCH] Added file upload gui using transfer.sh. --- i38.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/i38.sh b/i38.sh index 697924e..f77fafb 100755 --- a/i38.sh +++ b/i38.sh @@ -346,6 +346,9 @@ fi) $(if command -v pidgin &> /dev/null ; then echo 'bindsym p exec $(command -v pidgin), mode "default"' fi) +$(if command -v transfersh &> /dev/null ; then + echo 'bindsym t exec bash -c '"'"'fileName="$(yad --title "I38 Upload File" --file)" && url="$(transfersh "${fileName}" | tee >(yad --title "I38 - Uploading ${fileName##*/} ..." --progress --pulsate --auto-close))" && echo "${url#*saved at: }" | tee >(yad --title "I38 - Upload URL" --show-cursor --show-uri --button yad-close --sticky --text-info) >(xclip -selection clipboard)'"', mode \"default\"" +fi) # Restart orca bindsym Shift+o exec $(command -v orca) --replace, mode "default" # reload the configuration file