/* wmctrl */
I want to launch window form workspace 1 to workspace 2 under my ubuntu desktop
1. sudo apt-get install wmctrl
2. root@jsl-desktop:/home/jsl# wmctrl
3. root@jsl-desktop:/home/jsl# wmctrl -l <- will show your windows on your currently desktop
0x01c00003 -1 jsl-desktop Bottom Expanded Edge Panel
0x01c0004b -1 jsl-desktop Top Expanded Edge Panel
0x01e00024 0 jsl-desktop x-nautilus-desktop
0x04000004 0 jsl-desktop root@jsl-desktop: /home/jsl
0x01800033 0 jsl-desktop LinuxSystemNote - Google 文件 - Chromium
0x01801347 0 jsl-desktop Google - Chromium
4.root@jsl-desktop:/home/jsl# wmctrl -d <- will show your workspaces on your currently desktop
0 * DG: 5760x900 VP: 0,0 WA: 0,24 1440x852 Workspace 1
1 * DG: 5760x900 VP: 0,0 WA: 0,24 1440x852 Workspace 2
2 * DG: 5760x900 VP: 0,0 WA: 0,24 1440x852 Workspace 3
3 * DG: 5760x900 VP: 0,0 WA: 0,24 1440x852 Workspace 4
5.root@jsl-desktop:/home/jsl# wmctrl -r LinuxSystemNote -t 1
I want to launch window form workspace 1 to workspace 2 under my ubuntu desktop
1. sudo apt-get install wmctrl
2. root@jsl-desktop:/home/jsl# wmctrl
wmctrl 1.07
Usage: wmctrl [OPTION]...
Actions: (many action command)
you can see “-r <WIN> -t <DESK> Move the window to the specified desktop.”
So i should get window id / workspace id
Check format list :The format of the window list:
<window ID> <desktop ID> <client machine> <window title>The format of the desktop list:
<desktop ID> [-*] <geometry> <viewport> <workarea> <title>3. root@jsl-desktop:/home/jsl# wmctrl -l <- will show your windows on your currently desktop
0x01c00003 -1 jsl-desktop Bottom Expanded Edge Panel
0x01c0004b -1 jsl-desktop Top Expanded Edge Panel
0x01e00024 0 jsl-desktop x-nautilus-desktop
0x04000004 0 jsl-desktop root@jsl-desktop: /home/jsl
0x01800033 0 jsl-desktop LinuxSystemNote - Google 文件 - Chromium
0x01801347 0 jsl-desktop Google - Chromium
4.root@jsl-desktop:/home/jsl# wmctrl -d <- will show your workspaces on your currently desktop
0 * DG: 5760x900 VP: 0,0 WA: 0,24 1440x852 Workspace 1
1 * DG: 5760x900 VP: 0,0 WA: 0,24 1440x852 Workspace 2
2 * DG: 5760x900 VP: 0,0 WA: 0,24 1440x852 Workspace 3
3 * DG: 5760x900 VP: 0,0 WA: 0,24 1440x852 Workspace 4
5.root@jsl-desktop:/home/jsl# wmctrl -r LinuxSystemNote -t 1
wmctrl -r <keyword of your window> -t <number of your workspaces>
The window will show it under workspace 1
0 意見:
張貼留言