We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 909b54d commit 9af78aeCopy full SHA for 9af78ae
scripts/battery.sh
@@ -172,9 +172,9 @@ main()
172
173
bat_perc=$(battery_percent)
174
175
- hide_on_desktop="$(get_tmux_option "@dracula-battery-hide-on-desktop" "false")"
176
- # If no battery percent, don't show anything
177
- if [ -z "$bat_perc" ] && [ "$hide_on_desktop" = "true" ]; then
+ hide_on_desktop=$(get_tmux_option "@dracula-battery-hide-on-desktop" false)
+ # If no battery percent and the feature flag is enabled, hide the widget completely
+ if $hide_on_desktop && [ -z "$bat_perc" ]; then
178
echo ""
179
return
180
fi
0 commit comments