Cleanup stuff
This commit is contained in:
16
old/x11/screenshot.sh
Executable file
16
old/x11/screenshot.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
local maim_args=("-f" "png")
|
||||
local outfile="screenshot--$(date +'%F_%k-%M-%S').png"
|
||||
local outpath="${HOME}/downloads/${outfile}"
|
||||
|
||||
case "${1}" in;
|
||||
'-root')
|
||||
maim ${maim_args} "${outpath}" || exit
|
||||
;;
|
||||
'-select' | *)
|
||||
maim ${maim_args} -s "${outpath}" || exit
|
||||
;;
|
||||
esac
|
||||
|
||||
notify-send -t 5000 "Screenshot Taken" "Screenshot saved to \"${outfile}\""
|
Reference in New Issue
Block a user