Cleanup stuff

This commit is contained in:
2023-11-14 20:54:20 -08:00
parent a502b72299
commit 5d80c98c1f
12 changed files with 24 additions and 10 deletions

16
old/x11/screenshot.sh Executable file
View 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}\""