aboutsummaryrefslogtreecommitdiff
path: root/status
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano.tronto@gmail.com>2022-05-06 11:55:42 +0200
committerSebastiano Tronto <sebastiano.tronto@gmail.com>2022-05-06 11:55:42 +0200
commit123e8c7a125ce4492af2e18f40abb89eafbdc633 (patch)
tree5bd5c6b90ccc764143bb4e194858668ef8eb4230 /status
parente6f19ed63979844ea259f69b8ab0702586a69d68 (diff)
downloadscripts-123e8c7a125ce4492af2e18f40abb89eafbdc633.tar.gz
scripts-123e8c7a125ce4492af2e18f40abb89eafbdc633.zip
Added % sign to battery
Diffstat (limited to 'status')
-rwxr-xr-xstatus2
1 files changed, 1 insertions, 1 deletions
diff --git a/status b/status
index 442e583..0fd3cea 100755
--- a/status
+++ b/status
@@ -15,7 +15,7 @@ date=$(date +"%d %B %Y, %A")
15 15
16bat="/sys/class/power_supply/BAT0" 16bat="/sys/class/power_supply/BAT0"
17if [ -d $bat ]; then 17if [ -d $bat ]; then
18 battery="Battery: $(cat $bat/capacity) $(cat $bat/status)" 18 battery="Battery: $(cat $bat/capacity)%% $(cat $bat/status)"
19else 19else
20 battery="No battery" 20 battery="No battery"
21fi 21fi

Generated with cgit - Back to sebastiano.tronto.net