dotfiles/utils/.local/bin/0x0
Érico Rolim 19786cf9bc utils: update and add new pastes.
All of them now use wl-copy conditionally.

- purr: uses bsd.ac
- meow: uses bsd.ac with key
2020-07-07 18:38:37 -03:00

7 lines
130 B
Bash
Executable File

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