Skip to content

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

Merged
merged 2 commits into from
May 26, 2017
Merged

desktopManager service: Add wallpaper options #25496

merged 2 commits into from
May 26, 2017

Conversation

TomSmeets
Copy link
Contributor

These changes won't affect desktop-managers that have set bgSupport to true.

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.

  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
    (this is a module change and produces no binaries.)
  • Fits CONTRIBUTING.md.

Sorry, something went wrong.

These options are used by `feh` when setting the wallpaper.
@mention-bot
Copy link

@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:
Copy link
Member

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?

Copy link
Contributor Author

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)

@pSub pSub added the 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS label May 5, 2017

Verified

This commit was signed with the committer’s verified signature.
vcunat Vladimír Čunát
@@ -45,7 +73,7 @@ in
start = d.start
+ optionalString (needBGCond d) ''
if [ -e $HOME/.background-image ]; then
Copy link
Member

@Lassulus Lassulus May 9, 2017

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?

Copy link
Member

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.

@TomSmeets
Copy link
Contributor Author

Could this be merged?

Being able to change the wallpaper path and having multiple images should be put in a different PR.

@nbp nbp merged commit 5886b7f into NixOS:master May 26, 2017
@nbp
Copy link
Member

nbp commented May 26, 2017

@TomSmeets Sorry for the delay required for merging, and thanks for contributing these modifications!

@TomSmeets TomSmeets deleted the multimonitor-wallpaper branch May 27, 2017 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants