View Single Post
Posts: 212 | Thanked: 189 times | Joined on Oct 2010
#856
Originally Posted by JonWW View Post
I've made a QBW to rotate a desktop background according to the orientation of the phone. Enjoy.

Download and open the attatched zip file.
Copy the image files to:
Code:
/home/user/.backgrounds
Next import 'Desktop-rotator.QBW.txt' into a new QBW on any desktop, it does not matter which desktop as becon is hidden.
Edit the Advanced settings and where you see the peice of code
Code:
DESKTOP_TO_ROTATE=4
if [ ! -f "/home/user/.backgro...
change the value to the desktop you wish to rotate. Also change the image names to the same desktop number.
Code:
/home/user/.backgrounds/rotate-landscape-4.png
/home/user/.backgrounds/rotate-landscape-inverted-4.png
/home/user/.backgrounds/rotate-portrait-4.png
/home/user/.backgrounds/rotate-portrait-inverted-4.png
although the code is somewhat "ugly" (sorry!). it's faster than a version i made with gconftool-2 which is less code. maybe i'll find a way to update the background image.