Merge pull request #1 from lostMia/master

Have fun
This commit is contained in:
Sebastian Moser
2025-03-23 18:56:48 +01:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -190,7 +190,7 @@
font HackNerdFont-Regular 16 font HackNerdFont-Regular 16
### Output configuration ### Output configuration
#output * scale 1 bg ${./..}/resources/nix.png fill output * scale 1 bg #121212 solid_color
### Input configuration ### Input configuration
input type:keyboard { 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 = { security.pam.services.swaylock = {
text = '' text = ''

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/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 echo $power