1
1
#! /bin/bash
2
- # lewd.se screenshotter and file uploader
2
+ # sakamoto.moe screenshotter and file uploader
3
3
4
4
# >>> Options <<<
5
5
savedir=" $HOME /Pictures/Screenshots"
6
6
filename=" $( date ' +%Y-%m-%d_%H-%M-%S' ) "
7
7
maxsize=1048576 # Max filesize before going with lossy avif (in bytes)
8
8
9
- # LEWD_TOKEN ='YOUR TOKEN GOES HERE (https://lewd.se /user)'
10
- icon=" $HOME /Pictures/lewd.svg "
9
+ # SAKAMOTO_TOKEN ='YOUR TOKEN GOES HERE (https://sakamoto.moe /user)'
10
+ icon=" $HOME /Pictures/sakamotomoe.webp "
11
11
shorturl=false
12
12
13
13
# Available options are: spectacle,scrot,gnome-screenshot
@@ -33,7 +33,7 @@ help() {
33
33
-u upload file(s)
34
34
-l upload list of files (one file per line)
35
35
-s toggle short URL (must be first command)
36
- -r re-upload URL to lewd.se '
36
+ -r re-upload URL to sakamoto.moe '
37
37
exit
38
38
}
39
39
@@ -78,9 +78,9 @@ uploader() {
78
78
output=$( curl --request POST \
79
79
--form " file=@$file " \
80
80
--header " shortUrl: $shorturl " \
81
- --header " token: $LEWD_TOKEN " \
81
+ --header " token: $SAKAMOTO_TOKEN " \
82
82
--progress-bar \
83
- https://lewd.se /upload)
83
+ https://sakamoto.moe /upload)
84
84
# If upload isn't successful, tell user
85
85
if ! echo " $output " | grep -q ' status":200' ; then
86
86
echo " $output "
0 commit comments