From 02d6688a743664257ffd1b21b76ceee8cf4b6c75 Mon Sep 17 00:00:00 2001 From: Nathan Date: Sun, 15 Mar 2026 20:08:55 -0500 Subject: [PATCH] usable --- config/aurora/modules/PowerMode.qml | 42 +++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 config/aurora/modules/PowerMode.qml diff --git a/config/aurora/modules/PowerMode.qml b/config/aurora/modules/PowerMode.qml new file mode 100644 index 0000000..712b089 --- /dev/null +++ b/config/aurora/modules/PowerMode.qml @@ -0,0 +1,42 @@ +import Quickshell // for PanelWindow +import QtQuick // for Text +import QtQuick.Controls +import QtQuick.Layouts +import Quickshell.Io +import Quickshell.Widgets +import Quickshell.Hyprland +import Quickshell.Services.UPower + +ColumnLayout { + + spacing: 0 + + Button { + Layout.topMargin: 5 + x: (parent.width - width) / 2 + implicitWidth: parent.width - 10 + implicitHeight: parent.height / 5 - parent.spacing + + text: 'performance' + onClicked: PowerProfiles.profile = PowerProfile.Performance + visible: PowerProfiles.hasPerformanceProfile + } + Button { + Layout.topMargin: 5 + x: (parent.width - width) / 2 + implicitWidth: parent.width - 10 + implicitHeight: parent.height / 5 - parent.spacing + + text: 'balanced' + onClicked: PowerProfiles.profile = PowerProfile.Balanced + } + Button { + Layout.topMargin: 5 + x: (parent.width - width) / 2 + implicitWidth: parent.width - 10 + implicitHeight: parent.height / 5 - parent.spacing + + text: 'power saver' + onClicked: PowerProfiles.profile = PowerProfile.PowerSaver + } +}