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

View File

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