aboutsummaryrefslogtreecommitdiff
path: root/.scripts/battery_level.sh
diff options
context:
space:
mode:
Diffstat (limited to '.scripts/battery_level.sh')
-rwxr-xr-x.scripts/battery_level.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/.scripts/battery_level.sh b/.scripts/battery_level.sh
new file mode 100755
index 0000000..a1b1b48
--- /dev/null
+++ b/.scripts/battery_level.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+acpi -b | awk '{print $4}' | sed 's/,//' | tr -d '\n'