summaryrefslogtreecommitdiff
path: root/spectrwm
diff options
context:
space:
mode:
authorShubham Saini <shubham6405@pm.me>2020-06-24 10:38:07 +0000
committerShubham Saini <shubham6405@pm.me>2020-06-24 10:38:07 +0000
commita656c375e9ce53b2074ae5798abd436f5daf8d9b (patch)
tree848d56183e0e72fadc8fafad05296accad2bdb58 /spectrwm
parent362996db066e0c54870cbadec6bb017d1733a180 (diff)
added + & - for bat
Diffstat (limited to 'spectrwm')
-rwxr-xr-xspectrwm/.config/spectrwm/statusbar7
1 files changed, 6 insertions, 1 deletions
diff --git a/spectrwm/.config/spectrwm/statusbar b/spectrwm/.config/spectrwm/statusbar
index 5f6918c..01e1223 100755
--- a/spectrwm/.config/spectrwm/statusbar
+++ b/spectrwm/.config/spectrwm/statusbar
@@ -7,7 +7,12 @@ vol(){
7 7
8bat() { 8bat() {
9 power=$(cat /sys/class/power_supply/BAT0/capacity) 9 power=$(cat /sys/class/power_supply/BAT0/capacity)
10 echo -e "+@fg=1;bat+@fg=0; $power% " 10 status=$(cat /sys/class/power_supply/BAT0/status)
11 if [ "$status" == "Charging" ]; then
12 echo -e "+@fg=1;bat+@fg=0; +$power% "
13 elif [ "$status" == "Discharging" ]; then
14 echo -e "+@fg=1;bat+@fg=0; -$power% "
15 fi
11} 16}
12 17
13dte() { 18dte() {