dotfiles/utils/.local/bin/0x0

7 lines
142 B
Bash
Executable File

#!/bin/sh
website="$(curl -F"file=@${1:--}" ${WEBSITE:-https://0x0.st})"
echo $website
[ "$WAYLAND_DISPLAY" ] && echo -n $website | wl-copy