quickshell: fix

This commit is contained in:
2025-10-19 04:30:53 +02:00
parent acf6f69268
commit 75e6c1155c
2 changed files with 8 additions and 17 deletions

View File

@@ -86,14 +86,10 @@ Variants {
buttonColor: Colors.distroColor buttonColor: Colors.distroColor
onClicked: { onClicked: {
// PanelService.getPanel("controlCenterPanel")?.toggle(this) // PanelService.getPanel("controlCenterPanel")?.toggle(this)
PanelService.getPanel("wifiPanel")?.toggle(this) PanelService.getPanel("controlCenterPanel")?.toggle(this)
} }
onRightClicked: { onRightClicked: {
if (action.running) { Quickshell.execDetached(["rofi", "-show", "drun"]);
action.signal(15);
return ;
}
action.exec(["rofi", "-show", "drun"]);
} }
} }
@@ -103,6 +99,9 @@ Variants {
onClicked: { onClicked: {
PanelService.getPanel("wifiPanel")?.toggle(this) PanelService.getPanel("wifiPanel")?.toggle(this)
} }
onRightClicked: {
Quickshell.execDetached(["nm-connection-editor"]);
}
} }
SymbolButton { SymbolButton {
@@ -111,6 +110,9 @@ Variants {
onClicked: { onClicked: {
PanelService.getPanel("bluetoothPanel")?.toggle(this) PanelService.getPanel("bluetoothPanel")?.toggle(this)
} }
onRightClicked: {
Quickshell.execDetached(["blueberry"]);
}
} }
@@ -254,22 +256,12 @@ Variants {
symbol: Icons.powerMenu symbol: Icons.powerMenu
buttonColor: Colors.red buttonColor: Colors.red
onClicked: { onClicked: {
if (action.running) {
action.signal(15);
return ;
}
Quickshell.execDetached(["wlogout"]); Quickshell.execDetached(["wlogout"]);
} }
} }
} }
Process {
id: action
running: false
}
} }
} }

View File

@@ -152,7 +152,6 @@ ColumnLayout {
return Color.mPrimary; return Color.mPrimary;
} }
tooltipText: root.tooltipText
text: { text: {
if (modelData.pairing) if (modelData.pairing)
return "Pairing..."; return "Pairing...";