nix/modules/home-manager/eww/scripts/battery-time.bash
2024-03-28 10:47:17 -05:00

4 lines
107 B
Bash
Executable file

#!/usr/bin/env bash
{ upower -d; upower --monitor-detail; } \
| rg '\s*time to.*:\s*(\d.*)\s*$' -r '$1'