Bug 406130 - Keyboard shortcut for wallpaper change
Summary: Keyboard shortcut for wallpaper change
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Image & Slideshow wallpaper plugins (other bugs)
Version First Reported In: 5.15.3
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Marco Martin
URL:
Keywords:
: 408314 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-04-02 03:38 UTC by snipsnapsno
Modified: 2025-05-28 02:21 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.5.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description snipsnapsno 2019-04-02 03:38:03 UTC
SUMMARY

A keyboard shortcut for the "Next Wallpaper Image" on the desktop context menu would be very helpful.
Comment 1 Nate Graham 2019-06-14 22:30:12 UTC
*** Bug 408314 has been marked as a duplicate of this bug. ***
Comment 2 mattbunse 2020-08-16 02:39:21 UTC
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.
Comment 3 Matt Scott 2020-10-13 02:01:40 UTC
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"
Comment 4 Bug Janitor Service 2025-05-24 20:07:39 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5521
Comment 5 Kai Uwe Broulik 2025-05-27 08:41:11 UTC
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