-
Notifications
You must be signed in to change notification settings - Fork 1
/
shot
executable file
·48 lines (39 loc) · 1.06 KB
/
shot
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/sh
TMP="/tmp/$(date +"%Y-%m-%d_%H:%M:%S").png"
DIR="$HOME/Imagens/$(date +"%Y-%m-%d_%H:%M:%S").png"
sr ()
{
import -quality 100 -window root $DIR
notify-send -u low -i "$DIR" "PrintScreen" "Salvo em $DIR"
}
sa ()
{
import -quality 100 $DIR
notify-send -u low -i "$DIR" "PrintScreen" "Area selecioonada salvo e $DIR"
}
cr ()
{
import -quality 100 -window root $TMP
xclip -selection c -t image/png $TMP
notify-send -u low -i "$TMP" "PrintScreen" "Copiado para clipboard"
}
ca ()
{
import -quality 100 $TMP
xclip -selection c -t image/png $TMP
notify-send -u low -i "$TMP" "PrintScreen" "Área selecionada foi copiada para clipboard"
}
ur ()
{
import -quality 100 -window root $TMP
xclip -selection c -i <<< $(curl -F file=@$TMP http://0x0.st)
notify-send -u low -i "$TMP" "PrintScreen" "Upload url no clipboard"
}
ua ()
{
import -quality 100 $TMP
xclip -selection c -i <<< $(curl -F file=@$TMP http://0x0.st)
notify-send -u low -i "$TMP" "PrintScreen" "Área selecionada foi feito upload no clipboard"
}
fun=$(echo $@ |sed 's/\-//g;s/ //g')
${fun}