bspwm monitorset.sh: Quote more instances of $layout

This commit is contained in:
Salt 2018-08-01 21:38:34 -05:00
parent 4861be0df0
commit 8120fd9099

View File

@ -29,13 +29,13 @@ fi
if [[ $(echo ${monitors_secondary:-0}) == "0" ]]; then
# We only have one monitor, so give it everything
layout=$(seq --separator=" " 1 $desktops_total)
printf " [INFO] Found one monitor: $monitor_primary, so giving it layout $layout\n"
printf " [INFO] Found one monitor: $monitor_primary, so giving it layout "$layout"\n"
bspc monitor $monitor_primary -d $layout
else
deskpermon=$(expr $desktops_secondary / ${#monitors_secondary[@]})
# Give the first monitor the first few workspaces
layout=$(seq --separator=" " 1 $desktops_primary)
printf " [INFO] Giving primary monitor $monitor_primary layout $layout\n"
printf " [INFO] Giving primary monitor $monitor_primary layout "$layout"\n"
bspc monitor $monitor_primary -d $layout
unset layout
printf " [INFO] Attempting to put $desktops_secondary desktops across ${#monitors_secondary[@]} monitors, $deskpermon each\n"