-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmc-rsg-sw
executable file
·74 lines (52 loc) · 1.19 KB
/
mc-rsg-sw
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#! /bin/sh
#-- rsg-sw --#
# Custom single-thread old shipwreck FSG filter.
# Dependencies:
# - xclip
# - xdotool
# ~ ADIGEN
############
### SEED ###
############
cd $HOME/.minecraft/FSG/rsg-sw
echo "Finding Seed..."
genOutput=`./seed`
seed=`echo $genOutput | awk -F" " '{print $7}'`
token=`echo $genOutput | awk -F" " '{print $17}'`
echo "Seed found! Seed: $seed"
# Save it
cd $HOME/.minecraft/FSG_TOKENS
#echo -e "Seed: $seed\nToken: $(echo $genOutput | awk -F"Temp Token: " '{print $2}')" > $(date '+%T')_$seed
echo -e "Seed: $seed\nToken: $token" > $(date '+%T')_$seed
##############
### MACROS ###
##############
### Clipboard ###
#echo $seed | xsel -b -i
#clipboardSeed="$(xsel -b -o)"
echo $seed | xclip -selection clipboard -i
clipboardSeed=`xclip -selection clipboard -o`
if [[ $clipboardSeed == $seed ]]
then
echo "Seed succesfully copied to clipboard."
else
echo "Seed was not copied to clipboard succesfully."
fi
################
### Automation ###
alias k="xdotool key"
## New Seed ##
k Tab Return
k --repeat 3 Tab
k Return
k --repeat 2 Tab
k --repeat 3 Return
k --repeat 4 Tab
k Return
k --repeat 3 Tab
k ctrl+v
# k type \ $seed
k --repeat 2 shift+Tab
k Return
##
##################