mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
fix status bar for mouse batter capacity
This commit is contained in:
parent
7d760b0073
commit
001e528e28
@ -50,7 +50,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Logitech mouse battery status
|
# Logitech mouse battery status
|
||||||
bat=$(cat /sys/class/power_supply/hidpp_battery_[0-9]*/capacity)
|
bat=$(cat /sys/class/power_supply/hidpp_battery_[0-9]*/capacity | head -n 1)
|
||||||
if [ $bat -lt 20 ]; then
|
if [ $bat -lt 20 ]; then
|
||||||
bat_color="#f92672"
|
bat_color="#f92672"
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user