aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local/scripts/status/battery
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-10-14 00:44:54 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-10-14 00:44:54 +0100
commitde80fa4426b4dbbf8896be1d522825768320c77f (patch)
tree750c5ff656e0647c765424b8b851740dc8b723b7 /Scripts/.local/scripts/status/battery
parentbc3fae6b88308dc3e478954a0fb3d0b14809c2e8 (diff)
downloaddotfiles-de80fa4426b4dbbf8896be1d522825768320c77f.tar.gz
dotfiles-de80fa4426b4dbbf8896be1d522825768320c77f.tar.bz2
dotfiles-de80fa4426b4dbbf8896be1d522825768320c77f.zip
Update some scripts and SXHkD config
Diffstat (limited to 'Scripts/.local/scripts/status/battery')
-rwxr-xr-xScripts/.local/scripts/status/battery7
1 files changed, 5 insertions, 2 deletions
diff --git a/Scripts/.local/scripts/status/battery b/Scripts/.local/scripts/status/battery
index ccbec38..133a153 100755
--- a/Scripts/.local/scripts/status/battery
+++ b/Scripts/.local/scripts/status/battery
@@ -5,7 +5,10 @@ status=$(cat /sys/class/power_supply/BAT0/status)
if [[ $status == "Charging" ]]
then
- status=""
+ echo " $capacity% $time_left"
+elif [[ $status == "Not charging" ]]
+then
+ echo " $capacity%"
else
if [[ $capacity -ge 75 ]]
then
@@ -23,5 +26,5 @@ else
notify-send -u critical "Charge now!"
status=""
fi
+ echo "$status $capacity% $time_left"
fi
-echo "$status $capacity% $time_left"