Comment 10 for bug 1879976

Revision history for this message
Alan Griffith (g36054) wrote :

A work around is a shell script like

function wspace { e=$(wmctrl -d|wc -l); [[ $2 -gt 0 || $2 -lt $e ]] && wmctrl -l|sed '/'"$1"'/!d;s/ .*//' |xargs -I{} wmctrl -i -r {} -t$2; }

In the bash shell the function takes a quoted string string matching one or more window titles and an interger between 0 and the number of workspaces -1

wmctrl is the command queried for number of workspaces (desktops) with -d and list of windows with -l. Using -l, the 2nd value on each row is an int matching the window to a workspace.

I did check for this int in $HOME/.config/xpad/info-*. It wasn't there, though window geonetry was. Of course I don't know whether this information is helpful in fixing a C program.