[CLI] Background Changer app [Aug-7-2013]

Search This thread

blmvxer

Senior Member
Jan 13, 2012
1,480
607
Figured out how to change the background in Ubuntu Touch. :))

You just need to copy the appropriate picture to /home/phablet/Pictures/

Code:
#!/bin/bash
sudo echo
Sleep 1
ls /home/phablet/Pictures/
sleep 3
echo "Please enter a file from /home/phablet/Pictures for New Background:"
read filename
result=$filename
sudo cp /home/phablet/Pictures/$result /usr/share/unity8/graphics/tablet_background.jpg
sudo cp /home/phablet/Pictures/$result /usr/share/unity8/graphics/phone_background.jpg
echo "Ubuntu Touch will reboot in 3 seconds"
notify-send "Background Changed" "$result"
sleep 3
sudo reboot -p
 

Attachments

  • new.jpg
    new.jpg
    31.7 KB · Views: 955
Last edited:

blmvxer

Senior Member
Jan 13, 2012
1,480
607
This app will not work as of an update to unity8 and unity8-private from last night.

Will mess around and try to fix it. :)

With this update it'll read the Pictures folder so you don't have to remember the exact file name. :)

Sent from my LG-LS970 using xda app-developers app
 

darkforester67

Senior Member
Feb 14, 2011
56
24
This app will not work as of an update to unity8 and unity8-private from last night.

Will mess around and try to fix it. :)

With this update it'll read the Pictures folder so you don't have to remember the exact file name. :)

Sent from my LG-LS970 using xda app-developers app


FINNNNALLLLLLYYYYY!!!, thank you so much. :p
 
  • Like
Reactions: blmvxer

blmvxer

Senior Member
Jan 13, 2012
1,480
607
Update

Reads the Pictures folder. Modify it to any location you want.

Should notify you of what picture was selected before reboot.

Sent from my LG-LS970 using xda app-developers app
 
Last edited:
  • Like
Reactions: jonahly

blmvxer

Senior Member
Jan 13, 2012
1,480
607
This app will soon be outdated do to Wallpaper support in Unity8.

Sent from my LG-LS970 using xda app-developers app
 

akI*

Member
Aug 13, 2013
15
3
Im trying to change the screens here on my nexus 4 with your script but have no luck.
Are there any specific jpg characteristics i need?

Script is running fine but after reboot i found myself again with the background image it had also before.
 

blmvxer

Senior Member
Jan 13, 2012
1,480
607
Im trying to change the screens here on my nexus 4 with your script but have no luck.
Are there any specific jpg characteristics i need?

Script is running fine but after reboot i found myself again with the background image it had also before.

The location of the background may of changed. I will check it out and fix it if possible.

Sent from my LG-LS970 using xda app-developers app
 

blmvxer

Senior Member
Jan 13, 2012
1,480
607
Some large jpg files don't work. It's a hit and miss when looking for new backgrounds.

Sent from my LG-LS970 using xda app-developers app
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    Figured out how to change the background in Ubuntu Touch. :))

    You just need to copy the appropriate picture to /home/phablet/Pictures/

    Code:
    #!/bin/bash
    sudo echo
    Sleep 1
    ls /home/phablet/Pictures/
    sleep 3
    echo "Please enter a file from /home/phablet/Pictures for New Background:"
    read filename
    result=$filename
    sudo cp /home/phablet/Pictures/$result /usr/share/unity8/graphics/tablet_background.jpg
    sudo cp /home/phablet/Pictures/$result /usr/share/unity8/graphics/phone_background.jpg
    echo "Ubuntu Touch will reboot in 3 seconds"
    notify-send "Background Changed" "$result"
    sleep 3
    sudo reboot -p
    1
    This app will not work as of an update to unity8 and unity8-private from last night.

    Will mess around and try to fix it. :)

    With this update it'll read the Pictures folder so you don't have to remember the exact file name. :)

    Sent from my LG-LS970 using xda app-developers app


    FINNNNALLLLLLYYYYY!!!, thank you so much. :p
    1
    Update

    Reads the Pictures folder. Modify it to any location you want.

    Should notify you of what picture was selected before reboot.

    Sent from my LG-LS970 using xda app-developers app