diff --git a/default/quickshell/omarchy-shell/plugins/background/Background.qml b/default/quickshell/omarchy-shell/plugins/background/Background.qml index 40edefe0..c7007f00 100644 --- a/default/quickshell/omarchy-shell/plugins/background/Background.qml +++ b/default/quickshell/omarchy-shell/plugins/background/Background.qml @@ -53,12 +53,22 @@ Item { if (!bgSwitchProc.running) bgSwitchProc.running = true } + function openThemeSwitcher() { + if (!themeSwitchProc.running) themeSwitchProc.running = true + } + Process { id: bgSwitchProc command: ["bash", "-lc", "background=$(omarchy-theme-bg-switcher); [[ -n $background ]] && omarchy-theme-bg-set \"$background\""] onExited: root.refreshBackground() } + Process { + id: themeSwitchProc + command: ["bash", "-lc", "theme=$(omarchy-theme-switcher); [[ -n $theme ]] && omarchy-theme-set \"$theme\""] + onExited: root.refreshBackground() + } + Process { id: readlinkProc command: ["readlink", "-f", root.currentBackgroundLink] @@ -251,8 +261,12 @@ Item { MouseArea { anchors.fill: parent - acceptedButtons: Qt.LeftButton - onDoubleClicked: root.openSelector() + acceptedButtons: Qt.LeftButton | Qt.RightButton + onDoubleClicked: function(mouse) { + if (mouse.button === Qt.RightButton) root.openThemeSwitcher() + else root.openSelector() + mouse.accepted = true + } } } }