From d6c23ea057df35a94cbf5ec5e769c0276968557e Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Tue, 1 Oct 2019 16:36:04 +0100 Subject: [PATCH] Adds battery script --- bin/.bin/notifications/battery | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 bin/.bin/notifications/battery diff --git a/bin/.bin/notifications/battery b/bin/.bin/notifications/battery new file mode 100755 index 00000000..5b339c92 --- /dev/null +++ b/bin/.bin/notifications/battery @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +acpi | \ + sed 's/^.*Discharging,/🔋/' | \ + sed 's/^.*Charging,/🔌/' | \ + sed 's/, /\n/' | tr '\n' '\0' | xargs -0 notify-send