-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
desktopManager service: Add wallpaper options #25496
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
Conversation
These options are used by `feh` when setting the wallpaper.
@TomSmeets, thanks for your PR! By analyzing the history of the files in this pull request, we identified @ryantm, @nbp and @edolstra to be potential reviewers. |
default = "scale"; | ||
example = "fill"; | ||
description = '' | ||
Wallpaper image mode: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not think there is any documentation about the fact that ~/.background-image
is used for the wallpaper image.
I think it would be good to make a follow-up patch to add this information as part of this description. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I agree.
It took me a while to figure out how to set the background image.
The background image path should probably be an option.
This would add the possibility of multiple images, one for each monitor. (with combineScreens
disabled)
@@ -45,7 +73,7 @@ in | |||
start = d.start | |||
+ optionalString (needBGCond d) '' | |||
if [ -e $HOME/.background-image ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this check also be removed/edited?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why? The location didn't change.
Could this be merged? Being able to change the wallpaper path and having multiple images should be put in a different PR. |
@TomSmeets Sorry for the delay required for merging, and thanks for contributing these modifications! |
These changes won't affect desktop-managers that have set
bgSupport
totrue
.Motivation for this change
I'd like to have my wallpaper stretch across multiple screens. (I'm not using a desktop manager)
Things done
This is why I added the
combineScreens
option.This makes feh use
--no-xinerama
such that the wallpaper is set in the root-window that stretches across multiple monitors.I also added a
mode
option for completeness, this provides more control on the image scale method.I set the default values such that existing configurations wont be affected.
Feedback
I'm not sure about the name of the
combineScreens
option.I'd love to receive feedback on this.
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)(this is a module change and produces no binaries.)