Wip
This commit is contained in:
@@ -10,6 +10,9 @@
|
|||||||
modules.lavd
|
modules.lavd
|
||||||
# modules.ppd
|
# modules.ppd
|
||||||
];
|
];
|
||||||
|
nixos = {
|
||||||
|
services.upower.enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
# Most energy efficent scheduler setup..
|
# Most energy efficent scheduler setup..
|
||||||
systemd.services.scx.environment = {
|
systemd.services.scx.environment = {
|
||||||
SCX_SCHEDULER_OVERRIDE = "scx_lavd";
|
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'";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -48,17 +48,21 @@ Scope {
|
|||||||
// Right
|
// Right
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
Layout.preferredHeight: 20
|
Layout.preferredHeight: 20
|
||||||
|
// spacing: 100
|
||||||
|
spacing: 10
|
||||||
|
BatteryWidget {}
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: clockText.width
|
implicitWidth: clockText.width
|
||||||
height: clockText.height
|
implicitHeight: clockText.height
|
||||||
radius: 3.5
|
radius: 3.5
|
||||||
|
|
||||||
color: Colors.backgroundAlt
|
color: Colors.backgroundAlt
|
||||||
|
|
||||||
anchors.centerIn: parent
|
Layout.alignment: Qt.AlignCenter
|
||||||
Text {
|
Text {
|
||||||
id: clockText
|
id: clockText
|
||||||
color: Colors.textPrimary
|
color: Colors.textPrimary
|
||||||
|
font: "CaskaydiaCove NFM"
|
||||||
text: Clock.time
|
text: Clock.time
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
31
config/modules/quickshell/quickshell/BatteryWidget.qml
Normal file
31
config/modules/quickshell/quickshell/BatteryWidget.qml
Normal 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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user