1
0
Fork 0

fix(eww): add power information notification

Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
Lucas Sta Maria 2024-01-31 14:44:36 -05:00
parent acd52b0f5a
commit a1d3d54b0f
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47
2 changed files with 12 additions and 4 deletions

View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
msg=$(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | \
grep -E "state|time to|percentage" | \
awk '{$1=$1};1')
notify-send -t 3000 "Battery Status" "$msg"