diff --git a/README.md b/README.md index 6a3d815..fef7b0f 100644 --- a/README.md +++ b/README.md @@ -3,16 +3,16 @@ ### Installation guide ⚠️ **Note:** -Before using on another system, review: +Before using on another system, change: - hostName -- hardware options - +- if your computer is not a laptop change in ~/nixos/other/quickshell/bar/Power.qml the isLaptop variable to false. (This is a hardcoded value, because I can't get UPowerDevice.isLaptopBattery to work) You need to have `git` installed before installing the config. ```shell cd git clone https://github.com/Totorile1/nixos.git cd ./nixos +sudo cp /etc/nixos/hardware-configuration.nix ./hosts/laptop/hardware-configuration sudo nixos-rebuild switch --flake ~/nixos/#laptop ``` diff --git a/other/quickshell/bar/Power.qml b/other/quickshell/bar/Power.qml index 6c917d9..5805b08 100644 --- a/other/quickshell/bar/Power.qml +++ b/other/quickshell/bar/Power.qml @@ -13,7 +13,7 @@ Item { readonly property bool isPluggedIn: isCharging || chargeState == UPowerDeviceState.PendingCharge readonly property real percentage: UPower.displayDevice.percentage readonly property bool isLow: percentage <= 0.20 - readonly property bool isLaptop: true // hardcoded because this doesnt work UPowerDevice.isLaptopBattery + readonly property bool isLaptop: UPowerDevice.isLaptop // hardcoded because this doesnt work UPowerDevice.isLaptopBattery width: 32 height: 32