I am trying to make a custum animated “start” orb which involved gifs everything mostly works as expected, but clicking it brings up no “start menu“.
I just want it to execute a command when left clicked.
Contents of the main.qml file:
import QtQuick
import org.kde.plasma.plasmoid
PlasmoidItem {
id: root
implicitWidth: 32
implicitHeight: 32
property bool hovered: false
Image {
anchors.fill: parent
source: "orb_static.png"
visible: !root.hovered
fillMode: Image.PreserveAspectFit
smooth: true
}
AnimatedImage {
anchors.fill: parent
source: "orb_hover.gif"
visible: root.hovered
playing: root.hovered
fillMode: Image.PreserveAspectFit
smooth: true
onVisibleChanged: if (visible) currentFrame = 0
}
MouseArea {
anchors.fill: parent
hoverEnabled: true
acceptedButtons: Qt.LeftButton
onEntered: root.hovered = true
onExited: root.hovered = false
onClicked: {
plasmoid.action("open").trigger()
}
}
}
all i want the orb to do on left mouse click is to execute this command:
qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.activateLauncherMenu
I am very new to this, it would be appreciated if someone could throw in advice for making custom app launcher menu…
I am running KDE Plasma on fedora everything is updated and i am using Wayland.