-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
61 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
# Run from the root of the repo! | ||
|
||
find ./ThemeSwitcher/Roms/APPS -printf "%P\n" | tar -czf ThemesSwitcherVnext.tar.gz --no-recursion -C ./ThemeSwitcher/Roms/APPS -T - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
ThemeSwitcher/Roms/APPS/Theme Switcher/Theme Switcher - Hide.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
|
||
AppsDir=$(busybox dirname "$0") | ||
AppName="Theme Switcher" | ||
SkinsDir="$(busybox dirname $AppsDir)/Skins" | ||
|
||
# Check if coremappings.json includes '"Skins": "/bin/sh",' | ||
if [[ ! -n "$(busybox sed -n '/ "Skins": "\/bin\/sh",/p' /mnt/mmc/CFW/config/coremapping.json)" ]]; then | ||
# it was missing so we add it | ||
busybox sed -i '/{/ a\ "Skins": "\/bin\/sh",' /mnt/mmc/CFW/config/coremapping.json | ||
$SkinsDir/.utils/printstr " Unhiding skins tile... " & sleep 1 | ||
mv "$AppsDir/$AppName - Unhide.sh" "$AppsDir/$AppName - Hide.sh" | ||
else | ||
# it was there so we remove it | ||
busybox sed -i '/ "Skins": "\/bin\/sh",/d' /mnt/mmc/CFW/config/coremapping.json | ||
$SkinsDir/.utils/printstr " Hiding skins tile... " & sleep 1 | ||
mv "$AppsDir/$AppName - Hide.sh" "$AppsDir/$AppName - Unhide.sh" | ||
fi | ||
|
||
# Rumble success | ||
echo 50 > "/sys/class/power_supply/battery/moto" | ||
busybox sleep 0.2 | ||
echo 0 > "/sys/class/power_supply/battery/moto" | ||
busybox sleep 0.1 | ||
echo 60 > "/sys/class/power_supply/battery/moto" | ||
busybox sleep 0.2 | ||
echo 0 > "/sys/class/power_supply/battery/moto" | ||
busybox sleep 0.1 | ||
echo 70 > "/sys/class/power_supply/battery/moto" | ||
busybox sleep 0.2 | ||
echo 0 > "/sys/class/power_supply/battery/moto" |