Is there a command to go a specific workspace?how to shift applications from workspace 1 to 2 using commandHow to set the default workspace?Starting a windowed program in a specific workspace, from command lineCommand to switch workspaces on MATEHow to set default viewport on Compiz Desktop Wall?Keyboard shortcut for switch to workspace 11 doesn't workStart Ubuntu Focused on a Particular WorkspaceSliding WorkspacesWorkspace Switcher doesn't match workspace settingsChange “move windows” shortcuts - Ubuntu 12.04How can 'system monitor' can be turned into as powerful as Task manager of Windows in Ubuntu14.04?How to spawn/trigger a command upon entering specific workspaceCtrl+Alt+Arrow (switch workspace) won't work even if workspaces are enabled. Instead, it seems to have other effects in several programsWorkspaces stopped workingHow can I paste a specific string into my text by a shortcut key?

Exchanging control of a mount

UK visitors visa needed fast for badly injured family member

What is the correct way for pilots to say the time?

Euclidean Distance Between Two Matrices

Locked folder with obscure app from Sourceforge, now cannot unlock folder

Are we experiencing lower level of gravity now compared to past?

Relationship between two graph optimization problems

Why countdef, dimendef, and alike require custom-named register to be empty before assignment?

I noticed an error in a graded exam during office hours. Should I give the student the lower grade?

Is a fully qualified class name down to global scope ever required for out-of-line member function definitions?

Is "montäglich" commonly used?

Using a sealant to stop a toilet tank leak

Why would one use "enter the name of the project to confirm"?

How would a medieval village protect themselves against dinosaurs?

Do time signatures make sense?

How would you idiomatically translate the French saying "Il n’y a pas d'amour, il n’y a que des preuves d’amour" to English?

Do any NIST PQC have "homomorphic" public keys, in the sense that any two pubkeys derive a combination pubkey?

Can I use the Cleric spell Light and a magnifying glass to light a fire?

Are there any dishes that can only be cooked with a microwave?

How does tikz parse the coordinates surrounded by brackets like (2cm, 1cm)

n-Factor of P4O6

Two people from small group of friends want to have a "meeting" with me. The circumstances are strange and give me a bad feeling

"Store" a remote SSH session?

How can I convince my child to write?



Is there a command to go a specific workspace?


how to shift applications from workspace 1 to 2 using commandHow to set the default workspace?Starting a windowed program in a specific workspace, from command lineCommand to switch workspaces on MATEHow to set default viewport on Compiz Desktop Wall?Keyboard shortcut for switch to workspace 11 doesn't workStart Ubuntu Focused on a Particular WorkspaceSliding WorkspacesWorkspace Switcher doesn't match workspace settingsChange “move windows” shortcuts - Ubuntu 12.04How can 'system monitor' can be turned into as powerful as Task manager of Windows in Ubuntu14.04?How to spawn/trigger a command upon entering specific workspaceCtrl+Alt+Arrow (switch workspace) won't work even if workspaces are enabled. Instead, it seems to have other effects in several programsWorkspaces stopped workingHow can I paste a specific string into my text by a shortcut key?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









22


















I'm trying to make a quicklist on the Workspace Switcher launcher that allows for quick switching to a certain workspace. (My friend sometimes uses my computer and just doesn't enjoy keyboard shortcuts, so I want to help him out.)



So is there a command one could type in a terminal that would force a certain workspace to be focused on?










share|improve this question

























  • Also there is a possibility to set keyboard shortcut on systemsettings5 for kwin (switch desktop or else) or other desktop settings manager. then use xdotool to simulate the shortcut keys like xdotool key ctrl+alt+b;

    – intika
    Apr 22 at 1:45


















22


















I'm trying to make a quicklist on the Workspace Switcher launcher that allows for quick switching to a certain workspace. (My friend sometimes uses my computer and just doesn't enjoy keyboard shortcuts, so I want to help him out.)



So is there a command one could type in a terminal that would force a certain workspace to be focused on?










share|improve this question

























  • Also there is a possibility to set keyboard shortcut on systemsettings5 for kwin (switch desktop or else) or other desktop settings manager. then use xdotool to simulate the shortcut keys like xdotool key ctrl+alt+b;

    – intika
    Apr 22 at 1:45














22













22









22


10






I'm trying to make a quicklist on the Workspace Switcher launcher that allows for quick switching to a certain workspace. (My friend sometimes uses my computer and just doesn't enjoy keyboard shortcuts, so I want to help him out.)



So is there a command one could type in a terminal that would force a certain workspace to be focused on?










share|improve this question














I'm trying to make a quicklist on the Workspace Switcher launcher that allows for quick switching to a certain workspace. (My friend sometimes uses my computer and just doesn't enjoy keyboard shortcuts, so I want to help him out.)



So is there a command one could type in a terminal that would force a certain workspace to be focused on?







command-line workspaces quicklists






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked May 7 '11 at 21:58









LeronLeron

1,4504 gold badges13 silver badges19 bronze badges




1,4504 gold badges13 silver badges19 bronze badges















  • Also there is a possibility to set keyboard shortcut on systemsettings5 for kwin (switch desktop or else) or other desktop settings manager. then use xdotool to simulate the shortcut keys like xdotool key ctrl+alt+b;

    – intika
    Apr 22 at 1:45


















  • Also there is a possibility to set keyboard shortcut on systemsettings5 for kwin (switch desktop or else) or other desktop settings manager. then use xdotool to simulate the shortcut keys like xdotool key ctrl+alt+b;

    – intika
    Apr 22 at 1:45

















Also there is a possibility to set keyboard shortcut on systemsettings5 for kwin (switch desktop or else) or other desktop settings manager. then use xdotool to simulate the shortcut keys like xdotool key ctrl+alt+b;

– intika
Apr 22 at 1:45






Also there is a possibility to set keyboard shortcut on systemsettings5 for kwin (switch desktop or else) or other desktop settings manager. then use xdotool to simulate the shortcut keys like xdotool key ctrl+alt+b;

– intika
Apr 22 at 1:45











5 Answers
5






active

oldest

votes


















34



















You can use wmctrl.



Basics commands:
wmctrl -d to show all of your workspaces.
wmctrl -s <workspace_name> to change to a specific workspace.



If you are using Compiz, you will have to do a trick because Compiz "workspaces" are actually Viewports of a single Workspace.



Trick Instructions



Check the output of wmctrl -d For example, mine is:



0 * DG: 4098x2304 VP: 1366,0 WA: 0,23 1366x745 N/A 


This means that actually I have one Workspace of 4098 x 2304 instead of what I "think" I have (nine "workspaces", 3 x 3).

I was at what was supposed to be "workspace" 2, but actually I was at viewport (VP) 1366,0 (4098 / 3 = 1366) as showed by the output above.



So this is how it works: we take the whole Workspace and divide for the numbers of "workspaces" we "think" we have. In my case: 4098 / 3 = 1366 and 2304 / 3 = 768.



If I want to go to my "workspace" 1, the command is:



wmctrl -o 0,0


Then, if I want to go to my "workspace" 4, the command is:



wmctrl -o 0,768


If I want to go to my "workspace" 8, the command is:



wmctrl -o 1366,1536


If I want to go to my "workspace" 9, the command is:



wmctrl -o 2732,1536


Got it? ;-)



The -o flag "truncates" their values.
In other words it changes the "workspace" where the actual pixel is belonging to.
The following are equivalent:



wmctrl -o 0,0
wmctrl -o 1365,767





share|improve this answer























  • 1





    Is there a way to get to "the current desktop + 1"?

    – xjcl
    Apr 3 at 20:13


















9



















It is beautifully simple to achieve what you want with xdotool, which has multiple options for managing different workspaces (also known as 'desktops' within the program documentation). I find it can be very interesting and creative to string together commands from man xdotool; the commands I have formulated below might be useful in scripts.



Note: With some window managers, or if you are using compiz, you may need to use xdotool commands such as set_desktop_viewport and get_desktop_viewport. You may have to specify the commands in a different way like desgua suggests above, but for me the set_desktop and set_desktop_for_window commands proved most useful on a non-compiz system.)



(The solution is most useful for Xubuntu/Lubuntu users, or those who are not running compiz,etc.)



To list the number of current workspaces, enter



xdotool get_num_desktops


The following commands will only work if you have at least 1 other workspace.



To change focus to your workspace 1, just enter



xdotool set_desktop 1 


Then to return to the default workspace, enter



xdotool set_desktop 0


The workspace just needs to be specified as the last value in the command (1 or 2 or 3, etc).



To find the number of the workspace you are currently on, you could use



xdotool get_desktop


These commands could be used in scripts and they should be very useful for achieving what you what.



For how to switch applications to a particular desktop, see my answer here:



  • how to shift applications from workspace 1 to 2 using command

For more useful options available for workspace switching, consult man xdotool.






share|improve this answer




























  • I like this answer better than the accepted one, thank you. I used this to set two hot corners to easily switch between two workspaces.

    – timetofly
    Aug 8 '13 at 20:00











  • Also useful: Switch to the next desktop to the left/right by using the relative flag: xdotool set_desktop --relative -- -1

    – xjcl
    Apr 3 at 20:23


















1



















I have implemented a script that does what you want.
Here it is: https://github.com/norswap/wmov/blob/master/wmov.sh



It works indeed as described in desgua's post. It also the capabilities to send windows to other workspaces.






share|improve this answer





















  • 1





    Note: Doesn't work for virtual-desktop counts > 9.

    – j6m8
    Jul 21 '15 at 15:36


















0



















There is a script called compiz-send.py on the compiz wiki that partly adresses your question: it is not a specific workspace but you can get to the one next to it.



With this you can issue a command
./compiz-dbus-send.py put put_viewport_left_key
./compiz-dbus-send.py put put_viewport_right_key

and have the viewport go 1 to the left or to right.






share|improve this answer

































    0



















    Going to a specific workspace and performing actions there can be implemented with Python and the library pyautogui, that enables Python scripts to perform mouse clicks, keystrokes, etc.



    I wrote a short tutorial in the forum for Peppermint OS about starting an app on a specific workplace.






    share|improve this answer



























      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "89"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );














      draft saved

      draft discarded
















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f41093%2fis-there-a-command-to-go-a-specific-workspace%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown


























      5 Answers
      5






      active

      oldest

      votes








      5 Answers
      5






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      34



















      You can use wmctrl.



      Basics commands:
      wmctrl -d to show all of your workspaces.
      wmctrl -s <workspace_name> to change to a specific workspace.



      If you are using Compiz, you will have to do a trick because Compiz "workspaces" are actually Viewports of a single Workspace.



      Trick Instructions



      Check the output of wmctrl -d For example, mine is:



      0 * DG: 4098x2304 VP: 1366,0 WA: 0,23 1366x745 N/A 


      This means that actually I have one Workspace of 4098 x 2304 instead of what I "think" I have (nine "workspaces", 3 x 3).

      I was at what was supposed to be "workspace" 2, but actually I was at viewport (VP) 1366,0 (4098 / 3 = 1366) as showed by the output above.



      So this is how it works: we take the whole Workspace and divide for the numbers of "workspaces" we "think" we have. In my case: 4098 / 3 = 1366 and 2304 / 3 = 768.



      If I want to go to my "workspace" 1, the command is:



      wmctrl -o 0,0


      Then, if I want to go to my "workspace" 4, the command is:



      wmctrl -o 0,768


      If I want to go to my "workspace" 8, the command is:



      wmctrl -o 1366,1536


      If I want to go to my "workspace" 9, the command is:



      wmctrl -o 2732,1536


      Got it? ;-)



      The -o flag "truncates" their values.
      In other words it changes the "workspace" where the actual pixel is belonging to.
      The following are equivalent:



      wmctrl -o 0,0
      wmctrl -o 1365,767





      share|improve this answer























      • 1





        Is there a way to get to "the current desktop + 1"?

        – xjcl
        Apr 3 at 20:13















      34



















      You can use wmctrl.



      Basics commands:
      wmctrl -d to show all of your workspaces.
      wmctrl -s <workspace_name> to change to a specific workspace.



      If you are using Compiz, you will have to do a trick because Compiz "workspaces" are actually Viewports of a single Workspace.



      Trick Instructions



      Check the output of wmctrl -d For example, mine is:



      0 * DG: 4098x2304 VP: 1366,0 WA: 0,23 1366x745 N/A 


      This means that actually I have one Workspace of 4098 x 2304 instead of what I "think" I have (nine "workspaces", 3 x 3).

      I was at what was supposed to be "workspace" 2, but actually I was at viewport (VP) 1366,0 (4098 / 3 = 1366) as showed by the output above.



      So this is how it works: we take the whole Workspace and divide for the numbers of "workspaces" we "think" we have. In my case: 4098 / 3 = 1366 and 2304 / 3 = 768.



      If I want to go to my "workspace" 1, the command is:



      wmctrl -o 0,0


      Then, if I want to go to my "workspace" 4, the command is:



      wmctrl -o 0,768


      If I want to go to my "workspace" 8, the command is:



      wmctrl -o 1366,1536


      If I want to go to my "workspace" 9, the command is:



      wmctrl -o 2732,1536


      Got it? ;-)



      The -o flag "truncates" their values.
      In other words it changes the "workspace" where the actual pixel is belonging to.
      The following are equivalent:



      wmctrl -o 0,0
      wmctrl -o 1365,767





      share|improve this answer























      • 1





        Is there a way to get to "the current desktop + 1"?

        – xjcl
        Apr 3 at 20:13













      34















      34











      34









      You can use wmctrl.



      Basics commands:
      wmctrl -d to show all of your workspaces.
      wmctrl -s <workspace_name> to change to a specific workspace.



      If you are using Compiz, you will have to do a trick because Compiz "workspaces" are actually Viewports of a single Workspace.



      Trick Instructions



      Check the output of wmctrl -d For example, mine is:



      0 * DG: 4098x2304 VP: 1366,0 WA: 0,23 1366x745 N/A 


      This means that actually I have one Workspace of 4098 x 2304 instead of what I "think" I have (nine "workspaces", 3 x 3).

      I was at what was supposed to be "workspace" 2, but actually I was at viewport (VP) 1366,0 (4098 / 3 = 1366) as showed by the output above.



      So this is how it works: we take the whole Workspace and divide for the numbers of "workspaces" we "think" we have. In my case: 4098 / 3 = 1366 and 2304 / 3 = 768.



      If I want to go to my "workspace" 1, the command is:



      wmctrl -o 0,0


      Then, if I want to go to my "workspace" 4, the command is:



      wmctrl -o 0,768


      If I want to go to my "workspace" 8, the command is:



      wmctrl -o 1366,1536


      If I want to go to my "workspace" 9, the command is:



      wmctrl -o 2732,1536


      Got it? ;-)



      The -o flag "truncates" their values.
      In other words it changes the "workspace" where the actual pixel is belonging to.
      The following are equivalent:



      wmctrl -o 0,0
      wmctrl -o 1365,767





      share|improve this answer
















      You can use wmctrl.



      Basics commands:
      wmctrl -d to show all of your workspaces.
      wmctrl -s <workspace_name> to change to a specific workspace.



      If you are using Compiz, you will have to do a trick because Compiz "workspaces" are actually Viewports of a single Workspace.



      Trick Instructions



      Check the output of wmctrl -d For example, mine is:



      0 * DG: 4098x2304 VP: 1366,0 WA: 0,23 1366x745 N/A 


      This means that actually I have one Workspace of 4098 x 2304 instead of what I "think" I have (nine "workspaces", 3 x 3).

      I was at what was supposed to be "workspace" 2, but actually I was at viewport (VP) 1366,0 (4098 / 3 = 1366) as showed by the output above.



      So this is how it works: we take the whole Workspace and divide for the numbers of "workspaces" we "think" we have. In my case: 4098 / 3 = 1366 and 2304 / 3 = 768.



      If I want to go to my "workspace" 1, the command is:



      wmctrl -o 0,0


      Then, if I want to go to my "workspace" 4, the command is:



      wmctrl -o 0,768


      If I want to go to my "workspace" 8, the command is:



      wmctrl -o 1366,1536


      If I want to go to my "workspace" 9, the command is:



      wmctrl -o 2732,1536


      Got it? ;-)



      The -o flag "truncates" their values.
      In other words it changes the "workspace" where the actual pixel is belonging to.
      The following are equivalent:



      wmctrl -o 0,0
      wmctrl -o 1365,767






      share|improve this answer















      share|improve this answer




      share|improve this answer








      edited Nov 9 '15 at 22:03









      muru

      1




      1










      answered May 8 '11 at 1:34









      desguadesgua

      29k8 gold badges83 silver badges115 bronze badges




      29k8 gold badges83 silver badges115 bronze badges










      • 1





        Is there a way to get to "the current desktop + 1"?

        – xjcl
        Apr 3 at 20:13












      • 1





        Is there a way to get to "the current desktop + 1"?

        – xjcl
        Apr 3 at 20:13







      1




      1





      Is there a way to get to "the current desktop + 1"?

      – xjcl
      Apr 3 at 20:13





      Is there a way to get to "the current desktop + 1"?

      – xjcl
      Apr 3 at 20:13













      9



















      It is beautifully simple to achieve what you want with xdotool, which has multiple options for managing different workspaces (also known as 'desktops' within the program documentation). I find it can be very interesting and creative to string together commands from man xdotool; the commands I have formulated below might be useful in scripts.



      Note: With some window managers, or if you are using compiz, you may need to use xdotool commands such as set_desktop_viewport and get_desktop_viewport. You may have to specify the commands in a different way like desgua suggests above, but for me the set_desktop and set_desktop_for_window commands proved most useful on a non-compiz system.)



      (The solution is most useful for Xubuntu/Lubuntu users, or those who are not running compiz,etc.)



      To list the number of current workspaces, enter



      xdotool get_num_desktops


      The following commands will only work if you have at least 1 other workspace.



      To change focus to your workspace 1, just enter



      xdotool set_desktop 1 


      Then to return to the default workspace, enter



      xdotool set_desktop 0


      The workspace just needs to be specified as the last value in the command (1 or 2 or 3, etc).



      To find the number of the workspace you are currently on, you could use



      xdotool get_desktop


      These commands could be used in scripts and they should be very useful for achieving what you what.



      For how to switch applications to a particular desktop, see my answer here:



      • how to shift applications from workspace 1 to 2 using command

      For more useful options available for workspace switching, consult man xdotool.






      share|improve this answer




























      • I like this answer better than the accepted one, thank you. I used this to set two hot corners to easily switch between two workspaces.

        – timetofly
        Aug 8 '13 at 20:00











      • Also useful: Switch to the next desktop to the left/right by using the relative flag: xdotool set_desktop --relative -- -1

        – xjcl
        Apr 3 at 20:23















      9



















      It is beautifully simple to achieve what you want with xdotool, which has multiple options for managing different workspaces (also known as 'desktops' within the program documentation). I find it can be very interesting and creative to string together commands from man xdotool; the commands I have formulated below might be useful in scripts.



      Note: With some window managers, or if you are using compiz, you may need to use xdotool commands such as set_desktop_viewport and get_desktop_viewport. You may have to specify the commands in a different way like desgua suggests above, but for me the set_desktop and set_desktop_for_window commands proved most useful on a non-compiz system.)



      (The solution is most useful for Xubuntu/Lubuntu users, or those who are not running compiz,etc.)



      To list the number of current workspaces, enter



      xdotool get_num_desktops


      The following commands will only work if you have at least 1 other workspace.



      To change focus to your workspace 1, just enter



      xdotool set_desktop 1 


      Then to return to the default workspace, enter



      xdotool set_desktop 0


      The workspace just needs to be specified as the last value in the command (1 or 2 or 3, etc).



      To find the number of the workspace you are currently on, you could use



      xdotool get_desktop


      These commands could be used in scripts and they should be very useful for achieving what you what.



      For how to switch applications to a particular desktop, see my answer here:



      • how to shift applications from workspace 1 to 2 using command

      For more useful options available for workspace switching, consult man xdotool.






      share|improve this answer




























      • I like this answer better than the accepted one, thank you. I used this to set two hot corners to easily switch between two workspaces.

        – timetofly
        Aug 8 '13 at 20:00











      • Also useful: Switch to the next desktop to the left/right by using the relative flag: xdotool set_desktop --relative -- -1

        – xjcl
        Apr 3 at 20:23













      9















      9











      9









      It is beautifully simple to achieve what you want with xdotool, which has multiple options for managing different workspaces (also known as 'desktops' within the program documentation). I find it can be very interesting and creative to string together commands from man xdotool; the commands I have formulated below might be useful in scripts.



      Note: With some window managers, or if you are using compiz, you may need to use xdotool commands such as set_desktop_viewport and get_desktop_viewport. You may have to specify the commands in a different way like desgua suggests above, but for me the set_desktop and set_desktop_for_window commands proved most useful on a non-compiz system.)



      (The solution is most useful for Xubuntu/Lubuntu users, or those who are not running compiz,etc.)



      To list the number of current workspaces, enter



      xdotool get_num_desktops


      The following commands will only work if you have at least 1 other workspace.



      To change focus to your workspace 1, just enter



      xdotool set_desktop 1 


      Then to return to the default workspace, enter



      xdotool set_desktop 0


      The workspace just needs to be specified as the last value in the command (1 or 2 or 3, etc).



      To find the number of the workspace you are currently on, you could use



      xdotool get_desktop


      These commands could be used in scripts and they should be very useful for achieving what you what.



      For how to switch applications to a particular desktop, see my answer here:



      • how to shift applications from workspace 1 to 2 using command

      For more useful options available for workspace switching, consult man xdotool.






      share|improve this answer
















      It is beautifully simple to achieve what you want with xdotool, which has multiple options for managing different workspaces (also known as 'desktops' within the program documentation). I find it can be very interesting and creative to string together commands from man xdotool; the commands I have formulated below might be useful in scripts.



      Note: With some window managers, or if you are using compiz, you may need to use xdotool commands such as set_desktop_viewport and get_desktop_viewport. You may have to specify the commands in a different way like desgua suggests above, but for me the set_desktop and set_desktop_for_window commands proved most useful on a non-compiz system.)



      (The solution is most useful for Xubuntu/Lubuntu users, or those who are not running compiz,etc.)



      To list the number of current workspaces, enter



      xdotool get_num_desktops


      The following commands will only work if you have at least 1 other workspace.



      To change focus to your workspace 1, just enter



      xdotool set_desktop 1 


      Then to return to the default workspace, enter



      xdotool set_desktop 0


      The workspace just needs to be specified as the last value in the command (1 or 2 or 3, etc).



      To find the number of the workspace you are currently on, you could use



      xdotool get_desktop


      These commands could be used in scripts and they should be very useful for achieving what you what.



      For how to switch applications to a particular desktop, see my answer here:



      • how to shift applications from workspace 1 to 2 using command

      For more useful options available for workspace switching, consult man xdotool.







      share|improve this answer















      share|improve this answer




      share|improve this answer








      edited Apr 13 '17 at 12:24









      Community

      1




      1










      answered Jan 12 '13 at 19:46







      user76204user76204






















      • I like this answer better than the accepted one, thank you. I used this to set two hot corners to easily switch between two workspaces.

        – timetofly
        Aug 8 '13 at 20:00











      • Also useful: Switch to the next desktop to the left/right by using the relative flag: xdotool set_desktop --relative -- -1

        – xjcl
        Apr 3 at 20:23

















      • I like this answer better than the accepted one, thank you. I used this to set two hot corners to easily switch between two workspaces.

        – timetofly
        Aug 8 '13 at 20:00











      • Also useful: Switch to the next desktop to the left/right by using the relative flag: xdotool set_desktop --relative -- -1

        – xjcl
        Apr 3 at 20:23
















      I like this answer better than the accepted one, thank you. I used this to set two hot corners to easily switch between two workspaces.

      – timetofly
      Aug 8 '13 at 20:00





      I like this answer better than the accepted one, thank you. I used this to set two hot corners to easily switch between two workspaces.

      – timetofly
      Aug 8 '13 at 20:00













      Also useful: Switch to the next desktop to the left/right by using the relative flag: xdotool set_desktop --relative -- -1

      – xjcl
      Apr 3 at 20:23





      Also useful: Switch to the next desktop to the left/right by using the relative flag: xdotool set_desktop --relative -- -1

      – xjcl
      Apr 3 at 20:23











      1



















      I have implemented a script that does what you want.
      Here it is: https://github.com/norswap/wmov/blob/master/wmov.sh



      It works indeed as described in desgua's post. It also the capabilities to send windows to other workspaces.






      share|improve this answer





















      • 1





        Note: Doesn't work for virtual-desktop counts > 9.

        – j6m8
        Jul 21 '15 at 15:36















      1



















      I have implemented a script that does what you want.
      Here it is: https://github.com/norswap/wmov/blob/master/wmov.sh



      It works indeed as described in desgua's post. It also the capabilities to send windows to other workspaces.






      share|improve this answer





















      • 1





        Note: Doesn't work for virtual-desktop counts > 9.

        – j6m8
        Jul 21 '15 at 15:36













      1















      1











      1









      I have implemented a script that does what you want.
      Here it is: https://github.com/norswap/wmov/blob/master/wmov.sh



      It works indeed as described in desgua's post. It also the capabilities to send windows to other workspaces.






      share|improve this answer














      I have implemented a script that does what you want.
      Here it is: https://github.com/norswap/wmov/blob/master/wmov.sh



      It works indeed as described in desgua's post. It also the capabilities to send windows to other workspaces.







      share|improve this answer













      share|improve this answer




      share|improve this answer










      answered Jan 12 '13 at 18:21









      NorswapNorswap

      1827 bronze badges




      1827 bronze badges










      • 1





        Note: Doesn't work for virtual-desktop counts > 9.

        – j6m8
        Jul 21 '15 at 15:36












      • 1





        Note: Doesn't work for virtual-desktop counts > 9.

        – j6m8
        Jul 21 '15 at 15:36







      1




      1





      Note: Doesn't work for virtual-desktop counts > 9.

      – j6m8
      Jul 21 '15 at 15:36





      Note: Doesn't work for virtual-desktop counts > 9.

      – j6m8
      Jul 21 '15 at 15:36











      0



















      There is a script called compiz-send.py on the compiz wiki that partly adresses your question: it is not a specific workspace but you can get to the one next to it.



      With this you can issue a command
      ./compiz-dbus-send.py put put_viewport_left_key
      ./compiz-dbus-send.py put put_viewport_right_key

      and have the viewport go 1 to the left or to right.






      share|improve this answer






























        0



















        There is a script called compiz-send.py on the compiz wiki that partly adresses your question: it is not a specific workspace but you can get to the one next to it.



        With this you can issue a command
        ./compiz-dbus-send.py put put_viewport_left_key
        ./compiz-dbus-send.py put put_viewport_right_key

        and have the viewport go 1 to the left or to right.






        share|improve this answer




























          0















          0











          0









          There is a script called compiz-send.py on the compiz wiki that partly adresses your question: it is not a specific workspace but you can get to the one next to it.



          With this you can issue a command
          ./compiz-dbus-send.py put put_viewport_left_key
          ./compiz-dbus-send.py put put_viewport_right_key

          and have the viewport go 1 to the left or to right.






          share|improve this answer














          There is a script called compiz-send.py on the compiz wiki that partly adresses your question: it is not a specific workspace but you can get to the one next to it.



          With this you can issue a command
          ./compiz-dbus-send.py put put_viewport_left_key
          ./compiz-dbus-send.py put put_viewport_right_key

          and have the viewport go 1 to the left or to right.







          share|improve this answer













          share|improve this answer




          share|improve this answer










          answered May 7 '11 at 22:14









          RinzwindRinzwind

          226k30 gold badges437 silver badges580 bronze badges




          226k30 gold badges437 silver badges580 bronze badges
























              0



















              Going to a specific workspace and performing actions there can be implemented with Python and the library pyautogui, that enables Python scripts to perform mouse clicks, keystrokes, etc.



              I wrote a short tutorial in the forum for Peppermint OS about starting an app on a specific workplace.






              share|improve this answer






























                0



















                Going to a specific workspace and performing actions there can be implemented with Python and the library pyautogui, that enables Python scripts to perform mouse clicks, keystrokes, etc.



                I wrote a short tutorial in the forum for Peppermint OS about starting an app on a specific workplace.






                share|improve this answer




























                  0















                  0











                  0









                  Going to a specific workspace and performing actions there can be implemented with Python and the library pyautogui, that enables Python scripts to perform mouse clicks, keystrokes, etc.



                  I wrote a short tutorial in the forum for Peppermint OS about starting an app on a specific workplace.






                  share|improve this answer














                  Going to a specific workspace and performing actions there can be implemented with Python and the library pyautogui, that enables Python scripts to perform mouse clicks, keystrokes, etc.



                  I wrote a short tutorial in the forum for Peppermint OS about starting an app on a specific workplace.







                  share|improve this answer













                  share|improve this answer




                  share|improve this answer










                  answered Sep 11 at 20:40









                  The_FritzThe_Fritz

                  1011 bronze badge




                  1011 bronze badge































                      draft saved

                      draft discarded















































                      Thanks for contributing an answer to Ask Ubuntu!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f41093%2fis-there-a-command-to-go-a-specific-workspace%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown









                      Popular posts from this blog

                      Tamil (spriik) Luke uk diar | Nawigatjuun

                      Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

                      Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?