mirror of
https://github.com/sigmasternchen/desktopConfig
synced 2025-03-16 06:08:55 +00:00
10 lines
154 B
Text
10 lines
154 B
Text
![]() |
#!/bin/bash
|
||
|
|
||
|
if grep -i discharging /sys/class/power_supply/BAT0/status > /dev/null; then
|
||
|
status="↓"
|
||
|
else
|
||
|
status="↑"
|
||
|
fi
|
||
|
|
||
|
echo $status
|