about summary refs log tree commit diff
path: root/misc/bin/xshot-select-upload.sh
blob: e846800012a993d92ad24d273be41bcba16ca499 (plain) (blame)
1
2
3
4
5
6
7
#!/usr/bin/env bash

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