blob: 533ca983292ccaa879f591d80ce9b809769d0a12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
case $1 in
"-m")
actwin="$(hyprctl activewindow -j | jq -r '.monitor')"
actmon="$(hyprctl monitors -j |
jq -r ".[] | select(.id == $actwin)" |
jq -r '.name')"
grim -o "$actmon" $HOME/pics/screenshots/"$(date +%y%m%d_%H_%M_%S.png)"
;;
"-f")
grim $HOME/pics/screenshots/"$(date +%y%m%d_%H_%M_%S.png)"
;;
"-s")
grim -g "$(slurp)" $HOME/pics/screenshots/"$(date +%y%m%d_%H_%M_%S.png)"
;;
"-sc")
grim -g "$(slurp)" - | wl-copy
;;
*)
exit
;;
esac
|