-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbitEye.sh
More file actions
45 lines (23 loc) · 963 Bytes
/
bitEye.sh
File metadata and controls
45 lines (23 loc) · 963 Bytes
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
#!/bin/bash
set -e
FALLBACK="Themes/_fallback"; MODULES="Modules"
if [ -d "Appearance" ]; then
FALLBACK="Appearance/$FALLBACK"; MODULES="$FALLBACK/$MODULES"
fi
SCRIPTS="$FALLBACK/Scripts"; BGANIMATIONS="$FALLBACK/BGAnimations"
# Clone repository.
REPOSITORY="https://github.com/EngineMachiner/bitEye.git"
git clone "$REPOSITORY" "$MODULES/bitEye"
# Add to init script.
echo "Checking initialization script..."; TAPLUA="$SCRIPTS/tapLua.lua"
echo "LoadModule(\"bitEye/bitEye.lua\")" | { grep -xFv -f "$TAPLUA" >> "$TAPLUA" || true; }
echo "Done."
# Open editor to add actors.
cat << EOF
Add the actors to each screen layer:
bitEye.actor(\"OptionRow\") -- ScreenMiniMenuBackgroundChange
bitEye.actor(\"EditNoteField\") -- ScreenEdit
EOF
read -p "Nano will open. Press any key to continue."
sudo nano "$BGANIMATIONS/ScreenMiniMenuBackgroundChange overlay.lua"
sudo nano "$BGANIMATIONS/ScreenEdit overlay.lua"