index — dots-the-third @ 28a988fb0d985fabf4398d8ed582179a230be49d

I don't need nix, I have a way worse solution!

scripts/.config/scripts/screenshot.sh (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
#!/usr/bin/bash
export PATH=~/.local/bin:$PATH

POSITIONAL_ARGS=()

while :; do
    case $1 in
        -a|--area)
            grim -g "$(slurp)" - | wl-copy
            ;;
        -s|--screen)
            grim - | wl-copy
            ;;
        -e|--edit)
            exec 3< <(grim -g "$(slurp)" -)
            satty -f - <&3
            ;;
        *)
            break
    esac
    shift
done