开发者

unix shell command that make the virtual desktop spin

I'm looking for a way to make my virtual desktop change without using keyboard shortcu开发者_StackOverflowts. I explain: I want to do a java program that will change my current desktop to the desktop at the left for exemple, let's say by clicking on a button. I've done it using keyboard shortcuts sent by the java program, but i want it more universal (i mean, that can work for everyone). Hope I'm clear enough! Thanks.


This will give you available workspace (virtual desktop) names:

wmctrl -d  

then

wmctrl -s <workspace name> 

will move to the workspace.

Take a look at here http://tomas.styblo.name/wmctrl/ to see what window managers are supported.

My previous answer was:

xrandr is probably what you want. Take a look at this wikipedia page here too.

I thought xrandr will work but couldn't figure out how. I hope someone will comment and give the definite answer whether xrandr will work or not.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜