14 lines
229 B
Bash
Executable File
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
|