dotfiles/dot_config/fish/functions/batt.fish
punkfairie e077bcf3a3
Update .chezmoiignore
Add .config/fish/functions/batt.fish
2024-04-27 19:26:05 -07:00

6 lines
175 B
Fish

#!/usr/bin/env fish
function batt -d "Check battery percentage"
upower -i /org/freedesktop/UPower/devices/battery_BAT0 \
| grep -E "state|time to|percentage"
end