Files
dotfiles/hosts/main/bin/screenshot
Sebastian Moser 2139920fbc changes
2026-10-02 22:09:50 +02:00

14 lines
229 B
Bash
Executable File

#!/bin/bash
geometry=$(slurp -c "#ff0000ff")
if [[ "$?" != "0" ]]
then
pkill wayfreeze || true
exit
fi
grim -g "$geometry" -t ppm - | nixGL satty --filename - --copy-command=wl-copy --early-exit &
pkill wayfreeze || true