@@ -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 = ''
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user