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