This commit is contained in:
CronyAkatsuki 2023-08-23 19:50:09 +02:00
parent f999944f1a
commit 41754e8ad1
3 changed files with 5 additions and 5 deletions

View file

@ -5,8 +5,8 @@
file=$(fd . "$HOME" --type f --hidden --color=never --exclude ".git" | $DMENU -l 15)
[ -z "$file" ] && exit
if [ "$XDG_SESSION_TYPE" = "wayland" ]; then
curl -F "file=@$file" 0x0.st | wl-copy -n
curl -F "file=@$file" "https://upfast.cronyakatsuki.xyz" | wl-copy -n
else
curl -F "file=@$file" 0x0.st | xclip -selection clipboard
curl -F "file=@$file" "https://upfast.cronyakatsuki.xyz" | xclip -selection clipboard
fi
notify-send "Dmenu Share" "Ready to share"