diff --git a/common/nixos-wayland.nix b/common/nixos-wayland.nix index 568564b..8ccf008 100644 --- a/common/nixos-wayland.nix +++ b/common/nixos-wayland.nix @@ -190,7 +190,7 @@ font HackNerdFont-Regular 16 ### Output configuration - #output * scale 1 bg ${./..}/resources/nix.png fill + output * scale 1 bg #121212 solid_color ### Input configuration input type:keyboard { @@ -1086,6 +1086,8 @@ ''; }; + # Don't forget to actually enable the damn thing... + services.power-profiles-daemon.enable = true; security.pam.services.swaylock = { text = '' diff --git a/scripts/get_power_usage.sh b/scripts/get_power_usage.sh index fd11e4b..ca95c99 100755 --- a/scripts/get_power_usage.sh +++ b/scripts/get_power_usage.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -power=$(cat /sys/class/power_supply/BAT1/current_now /sys/class/power_supply/BAT1/voltage_now | xargs | awk '{ printf "%.1f\n", $1 * $2 / 1e12 }') +power=$(cat /sys/class/power_supply/BAT*/current_now /sys/class/power_supply/BAT*/voltage_now | xargs | awk '{ printf "%.1f\n", $1 * $2 / 1e12 }') echo $power