Skip to content
Discussion options

You must be logged in to vote

messed around with Actions.qml and added these blocks:

property and timer:

property bool autoRotateWallpapers: false

Timer {
    id: wpTimer
    interval: 10 * 60 * 1000
    repeat: true
    running: autoRotateWallpapers
    onTriggered: Quickshell.execDetached(["caelestia", "wallpaper", "-r"])
}

action:

        Action {
        name: qsTr("Rotate")
        desc: qsTr("Cycles wallpapers every 10-minutes")
        icon: "schedule"

        function onClicked(list: AppList): void {
            list.visibilities.launcher = false;
            autoRotateWallpapers = !autoRotateWallpapers;
            if (autoRotateWallpapers) wpTimer.start(); else wpTimer.stop();
        }
    },

when QML …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@soramanew
Comment options

@andoryus
Comment options

Answer selected by andoryus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants