You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
181 B
Fish

#!/usr/bin/fish
echo ""
while true
printf "\033[1A" # move cursor one line up
printf "\033[K"
echo (math (cat /sys/class/power_supply/BAT0/power_now) / 1000000)"w"
sleep 2
end