bspwm monitorset.sh: Quote more instances of $layout
This commit is contained in:
parent
4861be0df0
commit
8120fd9099
@ -29,13 +29,13 @@ fi
|
|||||||
if [[ $(echo ${monitors_secondary:-0}) == "0" ]]; then
|
if [[ $(echo ${monitors_secondary:-0}) == "0" ]]; then
|
||||||
# We only have one monitor, so give it everything
|
# We only have one monitor, so give it everything
|
||||||
layout=$(seq --separator=" " 1 $desktops_total)
|
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
|
bspc monitor $monitor_primary -d $layout
|
||||||
else
|
else
|
||||||
deskpermon=$(expr $desktops_secondary / ${#monitors_secondary[@]})
|
deskpermon=$(expr $desktops_secondary / ${#monitors_secondary[@]})
|
||||||
# Give the first monitor the first few workspaces
|
# Give the first monitor the first few workspaces
|
||||||
layout=$(seq --separator=" " 1 $desktops_primary)
|
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
|
bspc monitor $monitor_primary -d $layout
|
||||||
unset layout
|
unset layout
|
||||||
printf " [INFO] Attempting to put $desktops_secondary desktops across ${#monitors_secondary[@]} monitors, $deskpermon each\n"
|
printf " [INFO] Attempting to put $desktops_secondary desktops across ${#monitors_secondary[@]} monitors, $deskpermon each\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user