Bug 390084 - Add ability to cycle wallpaper (a.k.a. "Next Wallpaper") in Slideshow mode from dbus.
Summary: Add ability to cycle wallpaper (a.k.a. "Next Wallpaper") in Slideshow mode fr...
Status: RESOLVED NOT A BUG
Alias: None
Product: plasmashell
Classification: Plasma
Component: Image Wallpaper (show other bugs)
Version: 5.11.5
Platform: Other Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-08 16:15 UTC by onun23
Modified: 2018-02-12 17:48 UTC (History)
3 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 onun23 2018-02-08 16:15:45 UTC
Currently the only way to cycle your desktop (if it is in slideshow mode from a folder) is to right-click the desktop and select Next Wallpaper. It would be nice to expose this via dbus so that we can make a hotkey for it.

I'm tired of always having to go through the context menu each time I want to change the wallpaper.

PS: I hope this is in the right place.
Comment 1 David Edmundson 2018-02-11 22:54:51 UTC
There is.

See plasma scripting; then look at the evaluateScript method in plasmashell
Comment 2 onun23 2018-02-12 17:48:57 UTC
Thank you for your reply.
I am sorry for bothering you, but...well, I'm not that familiar with the API.
AFAIK there is no way to do next slide.

---------------------------------------------
var allDesktops = desktops();
currentDesktop = allDesktops[0];

for(i=0;i<allDesktops.length;i++)
{
    currentDesktop = allDesktops[i];
    if(currentDesktop.wallpaperPlugin == "org.kde.slideshow")
    {
        //TODO next image a.k.a slide
        //https://github.com/KDE/plasma-workspace/blob/master/wallpapers/image/imagepackage/contents/ui/main.qml#L46
        
    }
}

---------------------------------------------

Could you please point me in the right direction?

Btw, I'm aware that you 'can' do a slide show by using the set wallpaper method available from dbus. Like Krawall or the likes. But what about calling the native function NextSlide() ?

Thank you for your time.