This commit is contained in:
2026-03-13 00:51:09 +00:00
parent 824f75f9cb
commit ea47a2ca71
4 changed files with 42 additions and 4 deletions

View File

@@ -10,6 +10,9 @@
modules.lavd
# modules.ppd
];
nixos = {
services.upower.enable = true;
};
};
};
}

View File

@@ -14,7 +14,7 @@
# Most energy efficent scheduler setup..
systemd.services.scx.environment = {
SCX_SCHEDULER_OVERRIDE = "scx_lavd";
SCX_FLAGS_OVERRIDE = "--powersave --enable-cpu-bw";
SCX_FLAGS_OVERRIDE = "--powersave --enable-cpu-bw --cpu-pref-order '20-21,12-19,0-11'";
};
};
};

View File

@@ -48,17 +48,21 @@ Scope {
// Right
Layout.alignment: Qt.AlignRight
Layout.preferredHeight: 20
// spacing: 100
spacing: 10
BatteryWidget {}
Rectangle {
width: clockText.width
height: clockText.height
implicitWidth: clockText.width
implicitHeight: clockText.height
radius: 3.5
color: Colors.backgroundAlt
anchors.centerIn: parent
Layout.alignment: Qt.AlignCenter
Text {
id: clockText
color: Colors.textPrimary
font: "CaskaydiaCove NFM"
text: Clock.time
}
}

View File

@@ -0,0 +1,31 @@
import QtQuick
import QtQuick.Layouts
import Quickshell
import Quickshell.Services.UPower
Item {
id: root
// enabled: uPowerExists
width: content.width
height: content.height
Layout.alignment: Qt.AlignCenter
RowLayout {
id: content
height: 20
anchors.centerIn: root
Rectangle {
height: text.height
width: text.width
color: Colors.backgroundAlt
Layout.alignment: Qt.AlignCenter
Text {
property int power: UPower.displayDevice.percentage * 100
id: text
anchors.centerIn: parent
text: power
color: Colors.textPrimary
}
}
}
}