aboutsummaryrefslogtreecommitdiff
path: root/pw-battery
diff options
context:
space:
mode:
Diffstat (limited to 'pw-battery')
-rwxr-xr-xpw-battery7
1 files changed, 4 insertions, 3 deletions
diff --git a/pw-battery b/pw-battery
index e486769..b6f78fe 100755
--- a/pw-battery
+++ b/pw-battery
@@ -4,14 +4,15 @@
notify() {
dunstify \
-i battery-good-symbolic \
- -t 4000 \
+ -t 10000 \
-h string:x-canonical-private-synchronous:battery \
"Battery" "$1"
}
case "$BLOCK_BUTTON" in
- 1) notify "$(acpi -b | awk -F ': |, ' '{printf "%s\n%s\n", $2, $4}')" ;;
- 3) ghostty -e "$EDITOR" "$0" ;;
+ # ugly must do better
+ 1) notify "$(inxi -B --extra -c 0 -y 1 | sed -e 's/^[ \t]*//')" ;;
+ 3) notify "$(acpi -b | awk -F ': |, ' '{printf "%s\n%s\n", $2, $4}')" ;;
esac
# Loop through all attached batteries.