I have a computer hooked up to a television that I am using to show different data. I would like to setup some different programs on different workspaces and have it rotate the workspaces automatically on a timed basis. How would I make this happen?
I have a computer hooked up to a television that I am using to show different data. I would like to setup some different programs on different workspaces and have it rotate the workspaces automatically on a timed basis. How would I make this happen?
Yes, and it is very easy. You just need a tool to press the keys you would press to change the workspace. One of such tools is
xdotool
. To install it:Then you just need to create a script like this one (here I assume you only have 2 workspaces, and you use Ctrl+Alt+Left/Right to change between them, but you can easily extend it to match your needs):
Don't forget to make it executable. If you create it in
/usr/local/bin/workspace_switcher
you can do that usingThen to start it you just have to press Alt+F2 and type
workspace_switcher
. To stop it, you can usekillall workspace_switcher
If you use 4 workspaces as default in Ubuntu (and I suspect that this is your case because you said rotate the workspaces), you can use the following script: