diff --git a/home/dot_config/sway/scripts/executable_status.sh.tmpl b/home/dot_config/sway/scripts/executable_status.sh.tmpl index b536d3f7..64f8d44b 100644 --- a/home/dot_config/sway/scripts/executable_status.sh.tmpl +++ b/home/dot_config/sway/scripts/executable_status.sh.tmpl @@ -50,7 +50,7 @@ else fi # 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 bat_color="#f92672" else