feature: Wallpaper app support for per-display and cropping settings
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
matugenand other ML4W theming changes (enabled by default)
Changes
- Updated
ml4w-autostartto startawww-daemonand to only callml4w-wallpaperwhen there exists noawwwcache (otherwise letawwwhandle restoring wallpapers from its own cache) - Updated
ml4w-wallpaperto 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-wallpaperto consolidateawww/wallpaper functions and theming functions together - Refactored
WallpaperWindow.qmlto componentizeComboBoxandCheckBoxstyling 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
matugenand 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
Additional Notes
- The wallpaper position functionality requires
awww 0.12.1to function.ml4w-wallpaperchecks for theawwwversion, and it will drop the flag for cropping if the version isn't at least0.12.1.
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 - 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.
@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?
Thanks for reaching out. The changes we're needed for a stable launch of the live iso. Should be fixed now.
Thanks for the heads up @mylinuxforwork . Rebased your changes against this PR, and it's ready for review whenever you have a moment.
Hi @hurlbutt Just merged it into the rolling release. Can you please test again from your side? Thanks...
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.
Merged. Can you test again? Thank you.
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.