fill the fields? named and active workspaces are showing up blank in mxfb-workspace. Let's reserve a name for each? not blank.
/init It is okay to have more workspacenames than the number of workspaces. This will fill the yad fields. (?)
Code: Select all
0)
number=$(echo $output | cut -d, -f1)
if [[ $number == 1 ]]; then
names=$(echo $output | cut -d, -f3),Workspace2,Workspace3,Workspace4,
elif [[ $number == 2 ]]; then
names=$(echo $output | cut -d, -f3-4),Workspace3,Workspace4,
elif [[ $number == 3 ]]; then
names=$(echo $output | cut -d, -f3-5),Workspace4,
else
names=$(echo $output | cut -d, -f3-6)
snip. shorthand. 8-|
Code: Select all
0)
number=$(echo $output | cut -d, -f1)
if [[ $number == 1 ]]; then
names=$(echo $output | cut -d, -f3),Workspace2,area_3,area_4,w__5,w__6,w__7,w__8,w__9,w_10,w_11,w_12,
elif [[ $number == 2 ]]; then
names=$(echo $output | cut -d, -f3-4),area_3,area_4,w__5,w__6,w__7,w__8,w__9,w_10,w_11,w_12,
elif [[ $number == 3 ]]; then
names=$(echo $output | cut -d, -f3-5),area_4,w__5,w__6,w__7,w__8,w__9,w_10,w_11,w_12,
elif [[ $number == 4 ]]; then
names=$(echo $output | cut -d, -f3-6),w__5,w__6,w__7,w__8,w__9,w_10,w_11,w_12,
elif [[ $number == 5 ]]; then
names=$(echo $output | cut -d, -f3-7),w__6,w__7,w__8,w__9,w_10,w_11,w_12,
elif [[ $number == 6 ]]; then
names=$(echo $output | cut -d, -f3-8),w__7,w__8,w__9,w_10,w_11,w_12,
elif [[ $number == 7 ]]; then
names=$(echo $output | cut -d, -f3-9),w__8,w__9,w_10,w_11,w_12,
elif [[ $number == 8 ]]; then
names=$(echo $output | cut -d, -f3-10),w__9,w_10,w_11,w_12,
elif [[ $number == 9 ]]; then
names=$(echo $output | cut -d, -f3-11),w_10,w_11,w_12,
elif [[ $number == 10 ]]; then
names=$(echo $output | cut -d, -f3-12),w_11,w_12,
elif [[ $number == 11 ]]; then
names=$(echo $output | cut -d, -f3-13),w_12,
else
names=$(echo $output | cut -d, -f3-14)
fi