added powermenu commands
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user