summaryrefslogtreecommitdiff
path: root/battery-life
diff options
context:
space:
mode:
authorSchark <jordan@schark.online>2023-12-05 21:55:16 -0800
committerSchark <jordan@schark.online>2023-12-05 21:55:16 -0800
commiteeddeba558bebca73db94980efc7adbe21779769 (patch)
tree41f7e9ca60f302e9c845b2dd47379827bda139e4 /battery-life
parent40decbd7692d9c08ed25ad3e39b16af084c8be44 (diff)
downloadscripts-eeddeba558bebca73db94980efc7adbe21779769.tar.gz
scripts-eeddeba558bebca73db94980efc7adbe21779769.zip
Adding laptop scripts
Diffstat (limited to '')
-rwxr-xr-xbattery-life4
1 files changed, 4 insertions, 0 deletions
diff --git a/battery-life b/battery-life
new file mode 100755
index 0000000..f4a7281
--- /dev/null
+++ b/battery-life
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+return="$(acpi | sed "s,[^0-9]*,,g")%"
+echo "${return:1}"