Please suggest me a way to use any image like a re-sizable sticky note so that I can view it whenever I open my Unity Desktop.
I want it to be used like a homescreen photo widget app available on Android. So that even after rebooting my system, the image stays where it was positioned before, just like a sticky note.
What I want is depicted in the picture below:
In the above picture I placed the image on my Desktop, and resized the image icon to its maximum size, however this does not solve my problem as:
I cannot enlarge the image any further as this is the maximum size for resizing icons.
When I hover over the icon, the image gets highlighted which happens in case of icons, which I do not want
Even with the maximum icon size, the quality of the image becomes really poor as the image is distorted.
I want the image to be easily re-sized and re-positioned without having any of the disadvantages mentioned above.
I hope I am clear about my question now. If there is still any problem in understanding what I want please let me know.
(Ubuntu 16.04)
Showing an image on your desktop
Windows can be of different types. We do not only have "normal" windows, but also windows of (in our case) type "DESKTOP".
Windows of type "DESKTOP" stay below everyting; even all items on your desktop show up above them. Therefore showing an image in a window then results into:
...where the sundew image, pinned on the desktop, is actually a window (just like the desktop clock in the image btw).
The code
How to use
showportrait.py
Test- run it with the image, the x-position, y-position, width and height as arguments:
for example:
The image should show on your desktop.
If all works fine, add the command to Startup Applications.
Closing the window
Is easyest done by the command:
Note
Setting the width/hight, the script will scale the image until the first is reached, preserving the image' proportions.