Added screenshot.sh

This commit is contained in:
Alexander Rosenberg 2023-03-06 20:14:53 -08:00
parent 94885dd00f
commit af7e33dbc7
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

13
screenshot.sh Executable file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env zsh
local maim_args=("-f" "png")
local outfile="screenshot--$(date +'%F_%k-%M-%S').png"
case "${1}" in;
'-root')
maim ${maim_args} "${outfile}"
;;
'-select' | *)
maim ${maim_args} -s "${outfile}"
;;
esac