about summary refs log tree commit diff
path: root/scripts/xshot-upload.sh
blob: 17b614a133c1c1d59c688e8ec78a352c53fda8d8 (plain) (blame)
1
2
3
4
5
6
7
#!/bin/sh

PIC="$HOME/pictures/screenshots/$(date +%Y-%m-%d_%H-%M-%S).png"

maim --format=png --hidecursor --quality 8 "$PIC" &&
	curl --form "file=@$PIC" "https://0x0.st" |
	xclip -quiet

Consider giving Nix/NixOS a try! <3