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
+2 -2
View File
@@ -5,7 +5,7 @@ import qs.Ui
BarWidget {
id: root
moduleName: "Microphone"
moduleName: "omarchy.microphone"
readonly property var source: Pipewire.defaultAudioSource
@@ -42,7 +42,7 @@ BarWidget {
active: root.inUse
tooltipText: root.muted ? "Microphone muted" : (root.inUse ? "Microphone in use" : "Microphone live")
onPressed: function(b) {
if (b === Qt.MiddleButton) root.bar.run("omarchy-shell panels.audio toggle")
if (b === Qt.MiddleButton) root.bar.run("omarchy-shell omarchy.audio toggle")
else root.toggleMute()
}
onWheelMoved: function(delta) {