| Summary: | Keyboard shortcut for wallpaper change | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | snipsnapsno <c_pan> |
| Component: | Image & Slideshow wallpaper plugins | Assignee: | Marco Martin <notmart> |
| Status: | RESOLVED FIXED | ||
| Severity: | wishlist | CC: | 38mq8, lukas, mascot26, mattbunse, nate, plasma-bugs-null |
| Priority: | NOR | ||
| Version First Reported In: | 5.15.3 | ||
| Target Milestone: | 1.0 | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/plasma/plasma-workspace/-/commit/29b57387e8887b4eab1f7fb92469bcb9eab43fb2 | Version Fixed/Implemented In: | 6.5.0 |
| Sentry Crash Report: | |||
|
Description
snipsnapsno
2019-04-02 03:38:03 UTC
*** Bug 408314 has been marked as a duplicate of this bug. *** I'm also hoping this can be implemented. I've spent some time looking for a acceptable workaround and there isn't a good one I can see. Have found a simple enough shell-based workaround for now which can be attached to a keyboard shortcut if desired. A new wallpaper is selected when you change the SlideInterval config item, so quickly changing it (then back again) via dbus does the job fine:
nextslidescript='var allDesktops = desktops();
for (i=0;i<allDesktops.length;i++) {
d = allDesktops[i];
d.currentConfigGroup = Array("Wallpaper", "org.kde.slideshow", "General");
var currSlideInt = d.readConfig("SlideInterval")
d.writeConfig("SlideInterval", currSlideInt + 1);
d.writeConfig("SlideInterval", currSlideInt)
};
'
qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript "$nextslidescript"
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5521 Git commit 29b57387e8887b4eab1f7fb92469bcb9eab43fb2 by Kai Uwe Broulik. Committed on 27/05/2025 at 08:26. Pushed by broulik into branch 'master'. wallpapers/slideshow: Allow setting global shortcut for next image action Moves the action to the backend plugin so it can talk to KGlobalAccel. Can be handy to have a shortcut rather than having to use the menu every time. M +8 -14 wallpapers/image/imagepackage/contents/ui/main.qml M +1 -0 wallpapers/image/plugin/CMakeLists.txt M +14 -0 wallpapers/image/plugin/imagebackend.cpp M +7 -0 wallpapers/image/plugin/imagebackend.h https://invent.kde.org/plasma/plasma-workspace/-/commit/29b57387e8887b4eab1f7fb92469bcb9eab43fb2 |