-
Notifications
You must be signed in to change notification settings - Fork 32
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
Random wallpaper? #6
Comments
Hi, thanks for the suggestion. I started implementing it. There will be |
So, I've implemented it. There is |
Alright, tysm. I'll close this issue. |
Haha, yes, I figured I better work on the application while I have motivation, because in a few months time it's becoming increasingly difficult to find it :D |
true lmao |
Looking to help with this project... appears that |
Hi, the |
ah i see... yeah I think with it being a top level option like that it would flow more naturally. I can work on that. I was also going to add an option to output the current wallpaper path. that way it could be chained together with other utilities like gtkgreet for a seamless user experience |
Sounds good, feel free to propose pull requests on this :) |
Mind re-opening this for my tracking? Also how open to change are you? Right now there seems to be a disconnect between how the random wallpaper is set via the cli in |
Hmm, yes, you're right, it's strange that we don't update the config when the wallpaper is changed via cli --random. It should save the config indeed. Please update, I am quite open to changes, thank you for asking. |
I dont have multiple monitors. Can someone explain the functionality that is expected/currently takes place when --random is used in a multi-monitor situation? I would assume we assign a random image to each monitor, but how is this reflected in the config file for restoring later? |
Sure, for example, under normal circumstances, config stores two lists: Now, when you use
However, if we use p.s. note that despite the name |
But what is missing, is something like this at the end to save the changed wallpapers:
|
yeah thats my main difficulty in reading through this. It seems the Config object is a conflation of both the external configuration file and the running app, and things are intermixed in ways that make it unclear which thing needs to be changed. I'm assuming based on what you're saying that in the configuration file itself the values of |
I'm almost ready to submit the PR, just wanted to make sure I wasn't breaking multiple monitors |
It does appear though that if self.selected_monitor == "All":
self.monitors = [self.selected_monitor]
self.wallpaper = [self.selected_wallpaper]
elif self.selected_monitor in self.monitors:
index = self.monitors.index(self.selected_monitor)
self.wallpaper[index] = self.selected_wallpaper
else:
self.monitors.append(self.selected_monitor)
self.wallpaper.append(self.selected_wallpaper) So in the case of monitors being 'All' and |
The short answer I think is the same wallpaper on all monitors. |
lol, this is where I had been headed. I had done some significant reworking of the entire app before I just stopped and said it would probably be better to just create a new app instead. I've updated Edit: not sure of your preferences, but I use black and isort, so there's some additional changes due to the opinionated formatting it does. |
About the config, you can thing of it as an object that contains all the parameters of the app when it runs. It's just that initially these parameters are loaded from the file, and then saved back into the file when changed. It was supposed to be so that users don't manually edit config.ini. Yes, in config.ini wallpaper is comma separated, which later converts into the list. |
PR #29 submitted |
I tested it, seems to work fine. I'll close it then. Thank you for your contribution! |
Pretty self explainatory and was already implemented in wallutils.
Maybe you can implement it on waypaper itself?
The text was updated successfully, but these errors were encountered: