STARTWayland, basically all my dotfiles + wayland equivalent to xinit
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
startw/conf/config/scripts/screenshot

14 lines
247 B

4 years ago
#!/bin/sh
file="$HOME"/Pictures/screen-"$(date '+%d-%m-%y_%H:%M:%S')".png
case $1 in
"sel")
4 years ago
slop=$(slop -f "%g") || exit 1
4 years ago
exec import -window root -silent -crop "$slop" "$file"
;;
*)
exec import -window root -silent "$file"
;;
esac