From d5f8e91d91fb2284188f704bb71ddf78a1cd3a2d Mon Sep 17 00:00:00 2001 From: Niklas Kapelle Date: Fri, 28 Nov 2025 18:48:58 +0100 Subject: [PATCH] added powermenu commands --- launcher/Powermenu.qml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/launcher/Powermenu.qml b/launcher/Powermenu.qml index e98989d..713e239 100644 --- a/launcher/Powermenu.qml +++ b/launcher/Powermenu.qml @@ -33,27 +33,19 @@ PanelWindow { function executeButton(index){ switch (index){ case 0: - console.log("0") - // systemctl poweroff + Quickshell.execDetached(["systemctl", "poweroff"]) break case 1: - console.log("1") - // systemctl reboot + Quickshell.execDetached(["systemctl", "reboot"]) break case 2: - console.log("2") - // loginctl lock-session + Quickshell.execDetached(["loginctl", "lock-session"]) break case 3: - console.log("3") - // if [[ "$XDG_CURRENT_DESKTOP" == 'Hyprland' ]]; then - // ${pkgs.hyprland}/bin/hyprctl dispatch exit - // fi + Quickshell.execDetached(["hyprctl", "dispatch", "exit"]) break case 4: - console.log("4") - // boot-windows - // systemctl reboot + Quickshell.execDetached(["sh", "-c", "boot-windows && systemctl reboot"]) break } }