added powermenu commands

This commit is contained in:
2025-11-28 18:48:58 +01:00
parent 2b0a2f58bd
commit d5f8e91d91

View File

@@ -33,27 +33,19 @@ PanelWindow {
function executeButton(index){ function executeButton(index){
switch (index){ switch (index){
case 0: case 0:
console.log("0") Quickshell.execDetached(["systemctl", "poweroff"])
// systemctl poweroff
break break
case 1: case 1:
console.log("1") Quickshell.execDetached(["systemctl", "reboot"])
// systemctl reboot
break break
case 2: case 2:
console.log("2") Quickshell.execDetached(["loginctl", "lock-session"])
// loginctl lock-session
break break
case 3: case 3:
console.log("3") Quickshell.execDetached(["hyprctl", "dispatch", "exit"])
// if [[ "$XDG_CURRENT_DESKTOP" == 'Hyprland' ]]; then
// ${pkgs.hyprland}/bin/hyprctl dispatch exit
// fi
break break
case 4: case 4:
console.log("4") Quickshell.execDetached(["sh", "-c", "boot-windows && systemctl reboot"])
// boot-windows
// systemctl reboot
break break
} }
} }