dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

feature: Wallpaper app support for per-display and cropping settings

Open hurlbutt opened this issue 6 months ago • 2 comments

Description

This pull request enhances the Wallpaper Quickshell app to provide additional advanced settings:

  • Setting wallpaper for single outputs (default is all outputs)
  • Setting position of wallpaper image in screen (in case cropping is needed) in support of new feature of awww 0.12.1 (default is centered)
  • Disabling using new wallpaper for matugen and other ML4W theming changes (enabled by default)

Changes

  • Updated ml4w-autostart to start awww-daemon and to only call ml4w-wallpaper when there exists no awww cache (otherwise let awww handle restoring wallpapers from its own cache)
  • Updated ml4w-wallpaper to support additional parameters:
    • --skip-wallpaper Will skip setting the wallpaper with awww
    • --skip-theming Will skip updating OS themes based on new wallpaper.
    • --skip Alias for "--skip-wallpaper".
    • --monitor Specify which input to apply wallpaper change (default applies to all outputs)
    • --crop-gravity Specify where to anchor wallpaper image in case cropping is needed (values from 'awww img --crop-gravity; default is center)
  • Refactored ml4w-wallpaper to consolidate awww/wallpaper functions and theming functions together
  • Refactored WallpaperWindow.qml to componentize ComboBox and CheckBox styling and applied throughout the app
  • Added advanced option to choose specific output to apply wallpaper change
  • Added advanced option to choose where to position wallpaper image in monitor in case cropping is needed
  • Added advanced option to not apply matugen and ML4W theming changes as a consequence of changing wallpaper

How Has This Been Tested?

  • [X] Tested on Arch Linux/Based Distro.
  • [ ] Tested on Fedora Linux/Based Distro.
  • [ ] Tested on openSuse.

Checklist

Please ensure your pull request meets the following requirements:

  • [X] My code follows the style guidelines of this project.
  • [X] I have performed a self-review of my code.
  • [X] I have commented on my code, particularly in hard-to-understand areas.
  • [X] My changes do not introduce new warnings.
  • [ ] I have added tests that prove my fix is effective or that my feature works.
  • [ ] I have made corresponding changes to the documentation
  • [X] New and existing unit tests pass locally with my changes.

Screenshots

screenshot_20260528_151328

Additional Notes

  • The wallpaper position functionality requires awww 0.12.1 to function. ml4w-wallpaper checks for the awww version, and it will drop the flag for cropping if the version isn't at least 0.12.1.

hurlbutt avatar May 28 '26 22:05 hurlbutt

This is great. But cannot add it now to 2.13.0. But will test it immediately after the release foe 2.13.1

mylinuxforwork avatar May 31 '26 09:05 mylinuxforwork

@mylinuxforwork - Sounds good. Also, feel free to prescribe any styling changes to the checkbox component. I tried to use the theming attributes from the other elements to style the box, but I'm not tied to any of the implementation details and would welcome feedback.

hurlbutt avatar May 31 '26 18:05 hurlbutt

@mylinuxforwork - I saw you made several changes to dotfiles/.config/ml4w/scripts/ml4w-wallpaper recently. Do you expect any more changes to this file soon, or am I in the clear to rebase this PR with your new changes?

hurlbutt avatar Jun 22 '26 18:06 hurlbutt

Thanks for reaching out. The changes we're needed for a stable launch of the live iso. Should be fixed now.

mylinuxforwork avatar Jun 22 '26 19:06 mylinuxforwork

Thanks for the heads up @mylinuxforwork . Rebased your changes against this PR, and it's ready for review whenever you have a moment.

hurlbutt avatar Jun 22 '26 20:06 hurlbutt

Hi @hurlbutt Just merged it into the rolling release. Can you please test again from your side? Thanks...

mylinuxforwork avatar Jun 23 '26 06:06 mylinuxforwork

Thanks @mylinuxforwork . I tested again using the rolling release, and I created #1673 to clean up some issues with wallpaper caching and with waybar autostart.

hurlbutt avatar Jun 23 '26 18:06 hurlbutt

Merged. Can you test again? Thank you.

mylinuxforwork avatar Jun 23 '26 19:06 mylinuxforwork

Tested one more time. Caught an edge case when the daemon starts before the cache is checked, so created #1673 to patch it. Tested it locally on my machine by both deleting the awww cache and the ml4w wallpaper cache as well.

hurlbutt avatar Jun 25 '26 05:06 hurlbutt