+ Reply
Results 1 to 1 of 1

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: Theme Remover(Script)

is a discussion within the

File Mods

forums, a part of the

iPhone Modding

section;
Was up Modmyi I figured I'd share a script I wrote basically for ssh noobs but can be used by anyone. What this script will do is move WinterBoards default
...
  1. #1
    Green Apple D3@TH's Avatar
    Join Date
    Oct 2011
    Location
    /etc/host(with blocked ads)
    Posts
    69
    Thanks
    7
    Thanked 6 Times in 4 Posts

    Cool Theme Remover(Script)
    Was up Modmyi I figured I'd share a script I wrote basically for ssh noobs but can be used by anyone. What this script will do is move WinterBoards default themes into another directory that the script will create for you I have tested it and it does work if you guy's want to use this to do the same with another directory/file feel free to use it I don't mind it took me awhile to figure out how to get this to work the way I wanted it to but I figured it out.
    Well here's the script the behind the scenes of what happens when you run this in Mobile Terminal:

    Code:
    #!/bin/bash
    
    mkdir /var/mobile/Documents/WinterBoard
    sleep 3
    
    echo "I will move the unneeded themes in WinterBoard for you!"
    
    sleep 3
    
    echo  "Theme Remover by D3@TH from Deaths Repo"
    
    ##### root test #####
    # won't go any farther unless you're uid=0
    [ `id -u` != 0 ] && exec echo "Oops, you need to be root to run this script"
    
    echo ".....moving WinterBoard Default Themes!"
    
    sleep 2
    
    echo "…..now moving themes!"
    cd "/private/var/Themes/Black Navigation Bars.theme"
    mv "/private/var/Themes/Black Navigation Bars.theme" -b "/var/mobile/Documents/WinterBoard/"
    
    cd "/private/var/Themes/Dim Icons.theme"
    mv "/private/var/Themes/Dim Icons.theme" -b "/var/mobile/Documents/WinterBoard/"
    
    cd "/private/var/Themes/Dim Wallpaper.theme"
    mv "/private/var/Themes/Dim Wallpaper.theme" -b "/var/mobile/Documents/WinterBoard/"
    
    cd "/private/var/Themes/No Docked Icon Labels.theme"
    mv "/private/var/Themes/No Docked Icon Labels.theme" -b "/var/mobile/Documents/WinterBoard/"
    
    cd "/private/var/Themes/No Undocked Icon Labels.theme"
    mv "/private/var/Themes/No Undocked Icon Labels.theme" -b "/var/mobile/Documents/WinterBoard/"
    
    cd "/private/var/Themes/Solid Status Bar.theme"
    mv "/private/var/Themes/Solid Status Bar.theme" -b "/var/mobile/Documents/WinterBoard/"
    
    cd "/private/var/Themes/Transparent Dock.theme"
    mv "/private/var/Themes/Transparent Dock.theme" -b "/var/mobile/Documents/WinterBoard/"
    
    cd "/private/var/Themes/User Lock Background.theme"
    mv "/private/var/Themes/User Lock Background.theme" -b "/var/mobile/Documents/WinterBoard/"
    
    cd "/private/var/Themes/User Wallpaper.theme"
    mv "/private/var/Themes/User Wallpaper.theme" -b "/var/mobile/Documents/WinterBoard/"
    
    cd "/private/var/Themes/White Icon Labels.theme"
    mv "/private/var/Themes/White Icon Labels.theme" -b "/var/mobile/Documents/WinterBoard/"
    
    echo "All themes have been moved to /var/mobile/Documents/WinterBoard for when you want them back!"
    
    sleep 2
    
    echo "Finished…."
    
    sleep 3
    
    echo "PLEASE DO NOT DELETE ME BECAUSE IF YOU DO SO ALL DEFAULT WINTERBOARD THEMES WILL BE REPLACED"
    
    sleep 5
    
    echo "If you want the default WinterBoard themes back then uninstall me from Cydia and your themes will be replaced"
    
    sleep 5
    
    killall SpringBoard
    
    exit 0
    Here is the prerm script:

    Code:
    #!/bin/bash
    cd "/var/mobile/Documents/WinterBoard/Black Navigation Bars.theme"
    mv "/var/mobile/Documents/WinterBoard/Black Navigation Bars.theme" -b "/private/var/Themes/"
    
    cd "/var/mobile/Documents/WinterBoard/Dim Icons.theme"
    mv "/var/mobile/Documents/WinterBoard/Dim Icons.theme" -b "/private/var/Themes/"
    
    cd "/var/mobile/Documents/WinterBoard/Dim Wallpaper.theme"
    mv "/var/mobile/Documents/WinterBoard/Dim Wallpaper.theme" -b "/private/var/Themes/"
    
    cd "/var/mobile/Documents/WinterBoard/No Docked Icon Labels.theme"
    mv "/var/mobile/Documents/WinterBoard/No Docked Icon Labels.theme" -b "/private/var/Themes/"
    
    cd "/var/mobile/Documents/WinterBoard/No Undocked Icon Labels.theme"
    mv "/var/mobile/Documents/WinterBoard/No Undocked Icon Labels.theme" -b "/private/var/Themes/"
    
    cd "/var/mobile/Documents/WinterBoard/Solid Status Bar.theme"
    mv "/var/mobile/Documents/WinterBoard/Solid Status Bar.theme" -b "/private/var/Themes/"
    
    cd "/var/mobile/Documents/WinterBoard/Transparent Dock.theme"
    mv "/var/mobile/Documents/WinterBoard/Transparent Dock.theme" -b "/private/var/Themes/"
    
    cd "/var/mobile/Documents/WinterBoard/User Lock Background.theme"
    mv "/var/mobile/Documents/WinterBoard/User Lock Background.theme" -b "/private/var/Themes/"
    
    cd "/var/mobile/Documents/WinterBoard/User Wallpaper.theme"
    mv "/var/mobile/Documents/WinterBoard/User Wallpaper.theme" -b "/private/var/Themes/"
    
    cd "/var/mobile/Documents/WinterBoard/White Icon Labels.theme"
    mv "/var/mobile/Documents/WinterBoard/White Icon Labels.theme" -b "/private/var/Themes/"
    
    cd "/var/mobile/Documents/"
    rmdir "WinterBoard"
    
    killall SpringBoard
    
    exit 0
    I will be submitting this to the Modmyi repo. All I ask is don't try submitting this to another repo and claim it as your own I spent 3days trying to get this to work the way I wanted it to and I accomplished my goal by lots of research on Google.
    Last edited by D3@TH; 07-01-2012 at 09:20 AM.
    D3@TH's Creations
    Where Dreams Come True!
    Private Repo

  2. The Following User Says Thank You to D3@TH For This Useful Post:

    neurosys (07-14-2012)

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts