updated
This commit is contained in:
commit
60c11831de
23 changed files with 989 additions and 0 deletions
5
i3/get_power_usage.sh
Executable file
5
i3/get_power_usage.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
power_now=$(cat /sys/class/power_supply/BAT0/power_now)
|
||||
watts=$(printf "%.1f" "$(echo "$power_now / 1000000" | bc -l)")
|
||||
echo "$wattsW"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue