nix/modules/home-manager/eww/scripts/battery-time.bash

4 lines
107 B
Bash
Raw Normal View History

2024-03-28 10:47:17 -05:00
#!/usr/bin/env bash
{ upower -d; upower --monitor-detail; } \
| rg '\s*time to.*:\s*(\d.*)\s*$' -r '$1'