-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmaim_slop
More file actions
executable file
·30 lines (28 loc) · 897 Bytes
/
maim_slop
File metadata and controls
executable file
·30 lines (28 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
stamp="$HOME/Pictures/screenshots/$(date '+%y%m%d_%I%M%S_screenshot').png"
case "$1" in
full)
maim -u "$stamp"
setsid -f \
herbe \
"screenshot taken." \
"saved as:" \
$(basename "$stamp") \
"in:" \
"~/Pictures/screenshots"
;;
select)
maim -s -o -b 3 -c 0.3,0.45,0.4 "$stamp"
setsid -f \
herbe \
"screenshot taken." \
"saved as:" \
$(basename "$stamp") \
"in:" \
"~/Pictures/screenshots"
;;
*)
echo "usage: $(basename $0) [ full | select ]"
exit 0
;;
esac