Bug 406130 - Keyboard shortcut for wallpaper change
Summary: Keyboard shortcut for wallpaper change
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Image Wallpaper (show other bugs)
Version: 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: 2020-10-13 02:01 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


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"