diff options
author | Schark <jordan@schark.online> | 2023-12-05 21:55:16 -0800 |
---|---|---|
committer | Schark <jordan@schark.online> | 2023-12-05 21:55:16 -0800 |
commit | eeddeba558bebca73db94980efc7adbe21779769 (patch) | |
tree | 41f7e9ca60f302e9c845b2dd47379827bda139e4 /battery-life | |
parent | 40decbd7692d9c08ed25ad3e39b16af084c8be44 (diff) | |
download | scripts-eeddeba558bebca73db94980efc7adbe21779769.tar.gz scripts-eeddeba558bebca73db94980efc7adbe21779769.zip |
Adding laptop scripts
Diffstat (limited to '')
-rwxr-xr-x | battery-life | 4 |
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}" |