]> code.delx.au - spectrwm/blob - screenshot.sh
The arch linux folks want this so that they can add scrotwm to the
[spectrwm] / screenshot.sh
1 #!/bin/sh
2 #
3 # $scrotwm$
4
5 screenshot() {
6 case $1 in
7 full)
8 scrot -m
9 ;;
10 window)
11 sleep 1
12 scrot -s
13 ;;
14 *)
15 ;;
16 esac;
17 }
18
19 screenshot $1