I use two monitors: one directly in front of me and one on the right. It happens frequently that I want to move the entire content of the right screen to the center screen and vice versa. The best method I found so far is using the combination (function + shift + left/right). With this method however, I need to do it with every window.
Is there a build in function in Ubuntu or an application to achieve this feature?
If not, what would be an effective approach to implement this on my own?
Thanks for any help on this,
Cheers
wmctrl -d
is: `0 * DG: 1920x1080 VP: 0,0 WA: 72,27 1848x1053 Workspace 11 - DG: 1920x1080 VP: N/A WA: 72,27 1848x1053`
– kiliank Jul 04 '21 at 08:550 * DG: 3840x1200 VP: 0,0 WA: 72,27 3768x1173 Workspace 1 1 - DG: 3840x1200 VP: N/A WA: 72,27 3768x117
It seems that the script moves things to a different workspace, but it does not exchange the contents of the screens. Is there a way to assign screens to specific workspaces? – kiliank Jul 04 '21 at 09:06wmctrl
moves the windows between workspaces of the same screen, but not between screens. We may need to investigate other options. :( – FedKad Jul 04 '21 at 09:14-e
option ofwmctrl
which is related to the output (list of monitors) produced byxrandr
. That may lead to a solution for your question. – FedKad Jul 04 '21 at 09:22