Make built-in widgets plugins

This commit is contained in:
Ryan Hughes
2026-05-23 04:32:20 -04:00
parent fc180af54e
commit 4f0bdb790b
51 changed files with 565 additions and 230 deletions
+24
View File
@@ -0,0 +1,24 @@
import QtQuick
import qs.Ui
BarWidget {
id: root
moduleName: "omarchy.menu"
implicitWidth: button.implicitWidth
implicitHeight: button.implicitHeight
WidgetButton {
id: button
anchors.fill: parent
bar: root.bar
text: "\ue900"
fontFamily: "omarchy"
horizontalMargin: 7.5
onPressed: function(button) {
if (!root.bar) return
if (button === Qt.RightButton) root.bar.run("xdg-terminal-exec")
else root.bar.run("omarchy-shell shell toggle omarchy.menu '{\"menu\":\"root\"}'")
}
}
}
+10 -2
View File
@@ -6,10 +6,18 @@
"author": "Omarchy",
"description": "Quickshell-powered Omarchy command menu",
"kinds": [
"menu"
"menu",
"bar-widget"
],
"keepLoaded": true,
"entryPoints": {
"menu": "Menu.qml"
"menu": "Menu.qml",
"barWidget": "BarWidget.qml"
},
"barWidget": {
"displayName": "Omarchy menu",
"description": "Launches the Omarchy menu",
"category": "Compositor",
"allowMultiple": false
}
}