aboutsummaryrefslogtreecommitdiff
path: root/.scripts/battery_level.sh
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-09-12 10:19:13 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-09-12 10:19:13 +0530
commitf300ba9a9302e70dcc72523639aecc1e04feec53 (patch)
treec5082bb03ddb1e1eeab84da22cbfcb47a089f279 /.scripts/battery_level.sh
parentd45546d4e53f149dc6ab2fc0e3ee020427b6c01e (diff)
switched back to polybar
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'