We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ded3c40 commit 3b20bf7Copy full SHA for 3b20bf7
scripts/battery_icon_status.sh
@@ -39,7 +39,10 @@ get_icon_status_settings() {
39
40
print_icon_status() {
41
local status=$1
42
- if [[ $status =~ (charged) || $status =~ (full) ]]; then
+ if [[ is_wsl && -z $status ]]; then
43
+ # WSL env with no battery -> _probably_ gonna be a desktop!
44
+ printf "$icon_status_charged"
45
+ elif [[ $status =~ (charged) || $status =~ (full) ]]; then
46
printf "$icon_status_charged"
47
elif [[ $status =~ (^charging) ]]; then
48
printf "$icon_status_charging"
0 commit comments