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){
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
}
}