qs: handle toggles internally instead of relying on hyprctl dispatch global (#1745)

This commit is contained in:
end-4
2025-07-31 12:35:16 +07:00
parent 968e8195ef
commit a08a39b620
21 changed files with 77 additions and 63 deletions
@@ -16,7 +16,7 @@ QuickToggleButton {
}
altAction: () => {
Quickshell.execDetached(["bash", "-c", `${Config.options.apps.bluetooth}`])
Hyprland.dispatch("global quickshell:sidebarRightClose")
GlobalStates.sidebarRightOpen = false
}
Process {
id: toggleBluetooth
@@ -22,7 +22,7 @@ QuickToggleButton {
altAction: () => {
Quickshell.execDetached(["easyeffects"])
Hyprland.dispatch("global quickshell:sidebarRightClose")
GlobalStates.sidebarRightOpen = false
}
Process {
@@ -17,7 +17,7 @@ QuickToggleButton {
}
altAction: () => {
Quickshell.execDetached(["bash", "-c", `${Network.ethernet ? Config.options.apps.networkEthernet : Config.options.apps.network}`])
Hyprland.dispatch("global quickshell:sidebarRightClose")
GlobalStates.sidebarRightOpen = false
}
Process {
id: toggleNetwork