a bunch of stuff, including upgrade to wayland and ndi streaming to imac
This commit is contained in:
5
scripts/get_power_usage.sh
Executable file
5
scripts/get_power_usage.sh
Executable file
@@ -0,0 +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 }')
|
||||
|
||||
echo $power
|
||||
Reference in New Issue
Block a user