aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/island/Island.qml
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-07 11:57:34 +0100
committerDanilo M. <danix@danix.xyz>2026-11-07 11:57:34 +0100
commitb074d4927f699dc662a56c701d31787b711e331a (patch)
tree4a7592ad6595993ec7fee8d0a57733256b3ad96c /desktop/island/Island.qml
parentf75ebb4b5f366274cfa2e9cabdef03dcb042c9e6 (diff)
downloadquickshell-b074d4927f699dc662a56c701d31787b711e331a.tar.gz
quickshell-b074d4927f699dc662a56c701d31787b711e331a.zip
island: the Sonix player's icon and controls panel
Diffstat (limited to 'desktop/island/Island.qml')
-rw-r--r--desktop/island/Island.qml9
1 files changed, 8 insertions, 1 deletions
diff --git a/desktop/island/Island.qml b/desktop/island/Island.qml
index ee03ca1..f17358d 100644
--- a/desktop/island/Island.qml
+++ b/desktop/island/Island.qml
@@ -42,7 +42,7 @@ PanelWindow {
WlrLayershell.namespace: "keystone-island"
WlrLayershell.keyboardFocus: panel !== "" ? WlrKeyboardFocus.OnDemand : WlrKeyboardFocus.None
- // "", "sound", "headphones", "calendar" or "obs".
+ // "", "sound", "headphones", "sonix", "calendar" or "obs".
property string panel: ""
// --- reveal and hide -------------------------------------------------
@@ -141,6 +141,12 @@ PanelWindow {
function onPhonesChanged() { if (!status.phones && win.panel === "headphones") win.panel = ""; }
}
+ // And the Sonix player leaving the network.
+ Connections {
+ target: Sonix
+ function onPresentChanged() { if (!Sonix.present && win.panel === "sonix") win.panel = ""; }
+ }
+
HyprlandFocusGrab {
windows: [win]
active: win.panel !== ""
@@ -324,6 +330,7 @@ PanelWindow {
}
onOpenSound: win.panel = win.panel === "sound" ? "" : "sound"
onOpenHeadphones: win.panel = win.panel === "headphones" ? "" : "headphones"
+ onOpenSonix: win.panel = win.panel === "sonix" ? "" : "sonix"
onClosePanel: win.panel = ""
onOpenDrawer: { win.panel = ""; win.drawer.show("sound"); }
}