You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When there is no number in config.ctl to the right of the second pipe like this 1||top|( hyprland/workspaces )... the variable w_height does not get set properly. This happens because in the if statement in wbarconfgen.sh:69:
export w_height=$(grep '^1|' $conf_ctl | cut -d '|' -f 2) if [ -z $w_height ]; then y_monres=$(cat /sys/class/drm/*/modes | head -1 | cut -d 'x' -f 2) export w_height=$((y_monres * 2 / 100)) fi
Oops my bad, I thought if you had zsh installed, sh would link to zsh not bash. Turns out the script is run by bash and it works. Don't know if it still should be changed if for some reason the user does not have bash installed.
Bug Report
Description
When there is no number in config.ctl to the right of the second pipe like this
1||top|( hyprland/workspaces )...
the variable w_height does not get set properly. This happens because in the if statement in wbarconfgen.sh:69:export w_height=$(grep '^1|' $conf_ctl | cut -d '|' -f 2)
if [ -z $w_height ]; then
y_monres=$(cat /sys/class/drm/*/modes | head -1 | cut -d 'x' -f 2)
export w_height=$((y_monres * 2 / 100))
fi
gets interpreted as:
+Configs/.local/share/bin/wbarconfgen.sh:69> [ -z ']'
using [[ ]] instead nets:
+Configs/.local/share/bin/wbarconfgen.sh:69> [[ -z '' ]]
Steps to Reproduce
Expected Behavior
-z ''
Actual Behavior
-z ']'
Environment
using zsh 5.9 as shell
Linux Desktop-Silve 6.12.7-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Fri, 27 Dec 2024 14:24:32 +0000 x86_64 GNU/Linux
:The text was updated successfully, but these errors were encountered: