I am trying to do a simple script that can be added to plank to switch the workspace to the one I specify
##!/bin/bash
operandants=" --list --text ‘Choose your desktop’ --radiolist --column ‘Choose’ --column 'Desktop 1 "
numwork=$(wmctrl -d | wc -l)
workspace=" ‘Desktop $i’ "
j=1
i=1
while [ “$j” -lt “$numwork” ]
do
$operandants=$operandants$workspace
echo $operandants
j=$[$j+1]
i=$[$i+1]
done
zenity $operandants
but it aways says that