summaryrefslogtreecommitdiff
path: root/scripts/system/screenshot
blob: b599be2a137640aa08639fa992f88e028738dc29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
echo $1
echo $2

if [[ $1 == "-full" ]];
then
	if [[ $2 == "-save" ]];
	then
		grim -o eDP-1 ~/Pictures/Screenshots/$(date +'%s_grim.png')
	else
		grim -o eDP-1 - | wl-copy
	fi
else
	if [[ $1 == "-save" ]];
	then
		grim -g "$(slurp)" ~/Pictures/Screenshots/$(date +'%s_grim.png')
	else
		grim -g "$(slurp)" - | wl-copy
	fi
fi