Cinnamon 2.2 How to add custom shortuct: move workspace up

6,553

Solution 1

This answer comes late, and will maybe not 100% answer the initial request. However, the basic feature can be obtain by using a specific applet (using it now with 3.0, used it in previous versions of Cinnamon as well): Workspace grid (2D) and switcher.

When active and added to a panel, this applet actually lets you define a “real” workspace grid (number of rows / number of columns), and provides an option to “Use Keyboard shortcuts (Ctrl+Alt+Up/Down)” to switch desktop rows”. With this option checked, it actually overrides shortcuts for “Toggle Expo” and “Toggle Scale” to switch between workspaces (and you will be able to move windows to workspace up/down with CTRL+ALT+SHIFT+Up/Down).

Note however that it seems to be possible to still keep the option to have shortcuts for Expo/Scale, looking at the comments on the applets page.

Ok, so simply replacing 'switch-to-workspace-up' and 'switch-to-workspace-down' by 'switch-to-workspace-11' and 'switch-to-workspace-12' in the "applet.js"-file , assigning shortcuts to them via "keyboard shortcuts" in "system settings" and checking the "Use Keyboard shortcuts (Ctrl+Alt+Up/Down) to switch desktop rows" option in the applet settings got everything to work. Now I can specify shortcuts for expo/scale and move up/down separately. Nice!

Solution 2

Well, there is no "Up" really. They may be displayed stacked in expo mode but that depends on how many you have defined. Anyway, you should be able to set this in Cinnamon Settings. You need to find the "Keyboard" section and choose the "Keyboard Shortcuts" tab:

  enter image description here

  enter image description here

Change the shortcuts for "Switch to left workspace" and "Switch to right workspace" to Ctrl+Shift+Up and Ctrl+Shift+Down respectively and you should get what you want.

Share:
6,553

Related videos on Youtube

Dennis
Author by

Dennis

Updated on September 18, 2022

Comments

  • Dennis
    Dennis over 1 year

    I'm quite aware this must have been asked many times, but I cannot seem to find the right search terms to get an answer.

    I would like to have Ctrl+Shift+Up move my workspace up, and similarly Ctrl+Shift+Down to move down. Currently when I use these shortcuts cinnamon shows all the available workspaces or goes into expo mode. How do I change this?

    • Admin
      Admin about 10 years
      Have you tried setting these in cinammon's settings?
    • Admin
      Admin about 10 years
      Yes. There is no option to assign for any 'shift workspace up' type function.
  • Dennis
    Dennis about 10 years
    Hi, thanks for the advice. My workspaces are set in a 4 by 4 grid, so there is "up". But you have correctly highlighted my problem in that there is no up option, although my workspaces are structured such that there should be. I used to be able to use Ctrl+Shift+Up before a recent cinnamon update.