Added screenshot.sh
This commit is contained in:
parent
94885dd00f
commit
af7e33dbc7
13
screenshot.sh
Executable file
13
screenshot.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user