aboutsummaryrefslogtreecommitdiff
path: root/screenshot.sh
blob: 5afde9db8e05268d57be2631eeaa61d590e03feb (plain)
1
2
3
4
5
6
7
8
#!/bin/sh

# Takes a screenshot

name="$(date +"%y%m%d_%H%M%S")".png
file="$HOME/images/screenshots/""$name"
[ "$1" = "" ] && maim -m 8 "$file" && dunstify -t 800 "Screenshot $name taken."
[ "$1" = "-a" ] && maim -s -b 2 -c 0.412,0.431,1 -m 8 "$file" && dunstify -t 800 "Screenshot $name taken."