-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestion: use a library for handling wallpaper #19
Comments
I will look into it at the weekend. Sounds very promising to clean up code 👍 |
Does this Library only work with Python 3? |
No, it works with 2 and 3. (NOTE: Python 2 support is very recently finished and uploaded, please update) |
Missing disclaimer: To be honest, I see no purpose in using library which is that new and it does not have a lot of activity, but keep up the good work! |
@dolohow Well, I sure missed that :) Anyway, if you don't like a library, here is the essence: https://gist.github.com/bharadwaj-raju/46ef4c76e4e72ae618f83a22bfde09bf Then you can add that file (wallpaper.py) and call |
@dolohow But maybe the use of libdesktop makes it possible to use this Script on a broader range of DEs. As far as I can tell this script only works with KDE, Gnome, Lxde, Xfce4 and Mate; whereas libdesktop supports all kinds of obscure DEs see @bharadwaj-raju his code for wallpaper.set() |
@remggo Now, using the Gist above, you can paste the contents of said Gist into a file, import and call |
See PR #28 |
There is a library, libdesktop, that you can use to ease development, maintenance and add support for more platforms.
Install:
And then it's just:
Also:
It even has a
add_to_system_startup()
function, but probably you'll not want it since you want users to handle that throughcron
/Task Scheduler.The text was updated successfully, but these errors were encountered: