diff --git a/launcher/Powermenu.qml b/launcher/Powermenu.qml index 67cf78e..46fce08 100644 --- a/launcher/Powermenu.qml +++ b/launcher/Powermenu.qml @@ -11,11 +11,11 @@ PanelWindow { property bool show: false property int selectedIndex: 0 - property int buttonCount: 4 + property int buttonCount: 5 implicitWidth: 600 - implicitHeight: 400 + implicitHeight: 150 visible: show focusable: true color: "transparent" @@ -40,15 +40,26 @@ PanelWindow { switch (index){ case 0: console.log("0") + // systemctl poweroff break case 1: console.log("1") + // systemctl reboot break case 2: console.log("2") + // loginctl lock-session break case 3: console.log("3") + // if [[ "$XDG_CURRENT_DESKTOP" == 'Hyprland' ]]; then + // ${pkgs.hyprland}/bin/hyprctl dispatch exit + // fi + break + case 4: + console.log("4") + // boot-windows + // systemctl reboot break } } @@ -114,11 +125,18 @@ PanelWindow { active: root.selectedIndex == 2 icon: "" } - + Item { Layout.fillWidth: true } // spacer PowermenuButton { active: root.selectedIndex == 3 + icon: "" + } + + Item { Layout.fillWidth: true } // spacer + + PowermenuButton { + active: root.selectedIndex == 4 icon: "" } } diff --git a/launcher/PowermenuButton.qml b/launcher/PowermenuButton.qml index d66f0e5..82e9221 100644 --- a/launcher/PowermenuButton.qml +++ b/launcher/PowermenuButton.qml @@ -9,8 +9,8 @@ Rectangle { property string icon: "?" color: active - ? "#5b6078" // Hover/focus color - : "#494d64" // Normal color + ? "#5b6078" + : "#494d64" radius: 12 Text {