about summary refs log tree commit diff
path: root/scripts/xshot-select-upload.sh
blob: 040251ee43ddde31de55c2ca4e6f56082b2c2b8a (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 --select "$PIC" && \
    curl --form "file=@$PIC" "https://0x0.st" | \
    xclip -quiet

Consider giving Nix/NixOS a try! <3