Bug#313458: metacity: only supports keyboard shortcuts for 12
workspaces.
Peter Palfrader
Peter Palfrader <weasel@debian.org>, 313458@bugs.debian.org
Mon, 13 Jun 2005 21:29:22 +0200
--T4sUOijqQbZv57TR
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
Package: metacity
Version: 2.10.1-2
Severity: normal
Hi,
Metacity supports shortcuts to jump from one desktop to a selected other
workspace.
However, this is limited to only 12 desktops, which is a bit low in my
opinion.
Please raise it to at least 30 - this is what the attached patch does
for 2.8, it also applies with a bit of whining against 2.10.
Cheers,
Peter
--
PGP signed and encrypted | .''`. ** Debian GNU/Linux **
messages preferred. | : :' : The universal
| `. `' Operating System
http://www.palfrader.org/ | `- http://www.debian.org/
--T4sUOijqQbZv57TR
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: attachment; filename=metacity-30-workspaces
--- metacity-2.8.8.orig/src/keybindings.c
+++ metacity-2.8.8/src/keybindings.c
@@ -257,6 +257,42 @@
GINT_TO_POINTER (10) },
{ META_KEYBINDING_WORKSPACE_12, handle_activate_workspace,
GINT_TO_POINTER (11) },
+ { META_KEYBINDING_WORKSPACE_13, handle_activate_workspace,
+ GINT_TO_POINTER (12) },
+ { META_KEYBINDING_WORKSPACE_14, handle_activate_workspace,
+ GINT_TO_POINTER (13) },
+ { META_KEYBINDING_WORKSPACE_15, handle_activate_workspace,
+ GINT_TO_POINTER (14) },
+ { META_KEYBINDING_WORKSPACE_16, handle_activate_workspace,
+ GINT_TO_POINTER (15) },
+ { META_KEYBINDING_WORKSPACE_17, handle_activate_workspace,
+ GINT_TO_POINTER (16) },
+ { META_KEYBINDING_WORKSPACE_18, handle_activate_workspace,
+ GINT_TO_POINTER (17) },
+ { META_KEYBINDING_WORKSPACE_19, handle_activate_workspace,
+ GINT_TO_POINTER (18) },
+ { META_KEYBINDING_WORKSPACE_20, handle_activate_workspace,
+ GINT_TO_POINTER (19) },
+ { META_KEYBINDING_WORKSPACE_21, handle_activate_workspace,
+ GINT_TO_POINTER (20) },
+ { META_KEYBINDING_WORKSPACE_22, handle_activate_workspace,
+ GINT_TO_POINTER (21) },
+ { META_KEYBINDING_WORKSPACE_23, handle_activate_workspace,
+ GINT_TO_POINTER (22) },
+ { META_KEYBINDING_WORKSPACE_24, handle_activate_workspace,
+ GINT_TO_POINTER (23) },
+ { META_KEYBINDING_WORKSPACE_25, handle_activate_workspace,
+ GINT_TO_POINTER (24) },
+ { META_KEYBINDING_WORKSPACE_26, handle_activate_workspace,
+ GINT_TO_POINTER (25) },
+ { META_KEYBINDING_WORKSPACE_27, handle_activate_workspace,
+ GINT_TO_POINTER (26) },
+ { META_KEYBINDING_WORKSPACE_28, handle_activate_workspace,
+ GINT_TO_POINTER (27) },
+ { META_KEYBINDING_WORKSPACE_29, handle_activate_workspace,
+ GINT_TO_POINTER (28) },
+ { META_KEYBINDING_WORKSPACE_30, handle_activate_workspace,
+ GINT_TO_POINTER (29) },
{ META_KEYBINDING_WORKSPACE_LEFT, handle_workspace_switch,
GINT_TO_POINTER (META_MOTION_LEFT) },
{ META_KEYBINDING_WORKSPACE_RIGHT, handle_workspace_switch,
--- metacity-2.8.8.orig/src/metacity.schemas.in
+++ metacity-2.8.8/src/metacity.schemas.in
@@ -1540,6 +1540,420 @@
</locale>
</schema>
+ <schema>
+ <key>/schemas/apps/metacity/global_keybindings/switch_to_workspace_13</key>
+ <applyto>/apps/metacity/global_keybindings/switch_to_workspace_13</applyto>
+ <owner>metacity</owner>
+ <type>string</type>
+ <default>disabled</default>
+ <locale name="C">
+ <short>Switch to workspace 13</short>
+ <long>
+ The keybinding that switches to workspace 13.
+
+ The format looks like "<Control>a" or
+ "<Shift><Alt>F1".
+
+ The parser is fairly liberal and allows lower or upper case,
+ and also abbreviations such as "<Ctl>" and
+ "<Ctrl>". If you set the option to the special string
+ "disabled", then there will be no keybinding for this
+ action.
+ </long>
+ </locale>
+ </schema>
+
+ <schema>
+ <key>/schemas/apps/metacity/global_keybindings/switch_to_workspace_14</key>
+ <applyto>/apps/metacity/global_keybindings/switch_to_workspace_14</applyto>
+ <owner>metacity</owner>
+ <type>string</type>
+ <default>disabled</default>
+ <locale name="C">
+ <short>Switch to workspace 14</short>
+ <long>
+ The keybinding that switches to workspace 14.
+
+ The format looks like "<Control>a" or
+ "<Shift><Alt>F1".
+
+ The parser is fairly liberal and allows lower or upper case,
+ and also abbreviations such as "<Ctl>" and
+ "<Ctrl>". If you set the option to the special string
+ "disabled", then there will be no keybinding for this
+ action.
+ </long>
+ </locale>
+ </schema>
+
+ <schema>
+ <key>/schemas/apps/metacity/global_keybindings/switch_to_workspace_15</key>
+ <applyto>/apps/metacity/global_keybindings/switch_to_workspace_15</applyto>
+ <owner>metacity</owner>
+ <type>string</type>
+ <default>disabled</default>
+ <locale name="C">
+ <short>Switch to workspace 15</short>
+ <long>
+ The keybinding that switches to workspace 15.
+
+ The format looks like "<Control>a" or
+ "<Shift><Alt>F1".
+
+ The parser is fairly liberal and allows lower or upper case,
+ and also abbreviations such as "<Ctl>" and
+ "<Ctrl>". If you set the option to the special string
+ "disabled", then there will be no keybinding for this
+ action.
+ </long>
+ </locale>
+ </schema>
+
+ <schema>
+ <key>/schemas/apps/metacity/global_keybindings/switch_to_workspace_16</key>
+ <applyto>/apps/metacity/global_keybindings/switch_to_workspace_16</applyto>
+ <owner>metacity</owner>
+ <type>string</type>
+ <default>disabled</default>
+ <locale name="C">
+ <short>Switch to workspace 16</short>
+ <long>
+ The keybinding that switches to workspace 16.
+
+ The format looks like "<Control>a" or
+ "<Shift><Alt>F1".
+
+ The parser is fairly liberal and allows lower or upper case,
+ and also abbreviations such as "<Ctl>" and
+ "<Ctrl>". If you set the option to the special string
+ "disabled", then there will be no keybinding for this
+ action.
+ </long>
+ </locale>
+ </schema>
+
+ <schema>
+ <key>/schemas/apps/metacity/global_keybindings/switch_to_workspace_17</key>
+ <applyto>/apps/metacity/global_keybindings/switch_to_workspace_17</applyto>
+ <owner>metacity</owner>
+ <type>string</type>
+ <default>disabled</default>
+ <locale name="C">
+ <short>Switch to workspace 17</short>
+ <long>
+ The keybinding that switches to workspace 17.
+
+ The format looks like "<Control>a" or
+ "<Shift><Alt>F1".
+
+ The parser is fairly liberal and allows lower or upper case,
+ and also abbreviations such as "<Ctl>" and
+ "<Ctrl>". If you set the option to the special string
+ "disabled", then there will be no keybinding for this
+ action.
+ </long>
+ </locale>
+ </schema>
+
+ <schema>
+ <key>/schemas/apps/metacity/global_keybindings/switch_to_workspace_18</key>
+ <applyto>/apps/metacity/global_keybindings/switch_to_workspace_18</applyto>
+ <owner>metacity</owner>
+ <type>string</type>
+ <default>disabled</default>
+ <locale name="C">
+ <short>Switch to workspace 18</short>
+ <long>
+ The keybinding that switches to workspace 18.
+
+ The format looks like "<Control>a" or
+ "<Shift><Alt>F1".
+
+ The parser is fairly liberal and allows lower or upper case,
+ and also abbreviations such as "<Ctl>" and
+ "<Ctrl>". If you set the option to the special string
+ "disabled", then there will be no keybinding for this
+ action.
+ </long>
+ </locale>
+ </schema>
+
+ <schema>
+ <key>/schemas/apps/metacity/global_keybindings/switch_to_workspace_19</key>
+ <applyto>/apps/metacity/global_keybindings/switch_to_workspace_19</applyto>
+ <owner>metacity</owner>
+ <type>string</type>
+ <default>disabled</default>
+ <locale name="C">
+ <short>Switch to workspace 19</short>
+ <long>
+ The keybinding that switches to workspace 19.
+
+ The format looks like "<Control>a" or
+ "<Shift><Alt>F1".
+
+ The parser is fairly liberal and allows lower or upper case,
+ and also abbreviations such as "<Ctl>" and
+ "<Ctrl>". If you set the option to the special string
+ "disabled", then there will be no keybinding for this
+ action.
+ </long>
+ </locale>
+ </schema>
+
+ <schema>
+ <key>/schemas/apps/metacity/global_keybindings/switch_to_workspace_20</key>
+ <applyto>/apps/metacity/global_keybindings/switch_to_workspace_20</applyto>
+ <owner>metacity</owner>
+ <type>string</type>
+ <default>disabled</default>
+ <locale name="C">
+ <short>Switch to workspace 20</short>
+ <long>
+ The keybinding that switches to workspace 20.
+
+ The format looks like "<Control>a" or
+ "<Shift><Alt>F1".
+
+ The parser is fairly liberal and allows lower or upper case,
+ and also abbreviations such as "<Ctl>" and
+ "<Ctrl>". If you set the option to the special string
+ "disabled", then there will be no keybinding for this
+ action.
+ </long>
+ </locale>
+ </schema>
+
+ <schema>
+ <key>/schemas/apps/metacity/global_keybindings/switch_to_workspace_21</key>
+ <applyto>/apps/metacity/global_keybindings/switch_to_workspace_21</applyto>
+ <owner>metacity</owner>
+ <type>string</type>
+ <default>disabled</default>
+ <locale name="C">
+ <short>Switch to workspace 21</short>
+ <long>
+ The keybinding that switches to workspace 21.
+
+ The format looks like "<Control>a" or
+ "<Shift><Alt>F1".
+
+ The parser is fairly liberal and allows lower or upper case,
+ and also abbreviations such as "<Ctl>" and
+ "<Ctrl>". If you set the option to the special string
+ "disabled", then there will be no keybinding for this
+ action.
+ </long>
+ </locale>
+ </schema>
+
+ <schema>
+ <key>/schemas/apps/metacity/global_keybindings/switch_to_workspace_22</key>
+ <applyto>/apps/metacity/global_keybindings/switch_to_workspace_22</applyto>
+ <owner>metacity</owner>
+ <type>string</type>
+ <default>disabled</default>
+ <locale name="C">
+ <short>Switch to workspace 22</short>
+ <long>
+ The keybinding that switches to workspace 22.
+
+ The format looks like "<Control>a" or
+ "<Shift><Alt>F1".
+
+ The parser is fairly liberal and allows lower or upper case,
+ and also abbreviations such as "<Ctl>" and
+ "<Ctrl>". If you set the option to the special string
+ "disabled", then there will be no keybinding for this
+ action.
+ </long>
+ </locale>
+ </schema>
+
+ <schema>
+ <key>/schemas/apps/metacity/global_keybindings/switch_to_workspace_23</key>
+ <applyto>/apps/metacity/global_keybindings/switch_to_workspace_23</applyto>
+ <owner>metacity</owner>
+ <type>string</type>
+ <default>disabled</default>
+ <locale name="C">
+ <short>Switch to workspace 23</short>
+ <long>
+ The keybinding that switches to workspace 23.
+
+ The format looks like "<Control>a" or
+ "<Shift><Alt>F1".
+
+ The parser is fairly liberal and allows lower or upper case,
+ and also abbreviations such as "<Ctl>" and
+ "<Ctrl>". If you set the option to the special string
+ "disabled", then there will be no keybinding for this
+ action.
+ </long>
+ </locale>
+ </schema>
+
+ <schema>
+ <key>/schemas/apps/metacity/global_keybindings/switch_to_workspace_24</key>
+ <applyto>/apps/metacity/global_keybindings/switch_to_workspace_24</applyto>
+ <owner>metacity</owner>
+ <type>string</type>
+ <default>disabled</default>
+ <locale name="C">
+ <short>Switch to workspace 24</short>
+ <long>
+ The keybinding that switches to workspace 24.
+
+ The format looks like "<Control>a" or
+ "<Shift><Alt>F1".
+
+ The parser is fairly liberal and allows lower or upper case,
+ and also abbreviations such as "<Ctl>" and
+ "<Ctrl>". If you set the option to the special string
+ "disabled", then there will be no keybinding for this
+ action.
+ </long>
+ </locale>
+ </schema>
+
+ <schema>
+ <key>/schemas/apps/metacity/global_keybindings/switch_to_workspace_25</key>
+ <applyto>/apps/metacity/global_keybindings/switch_to_workspace_25</applyto>
+ <owner>metacity</owner>
+ <type>string</type>
+ <default>disabled</default>
+ <locale name="C">
+ <short>Switch to workspace 25</short>
+ <long>
+ The keybinding that switches to workspace 25.
+
+ The format looks like "<Control>a" or
+ "<Shift><Alt>F1".
+
+ The parser is fairly liberal and allows lower or upper case,
+ and also abbreviations such as "<Ctl>" and
+ "<Ctrl>". If you set the option to the special string
+ "disabled", then there will be no keybinding for this
+ action.
+ </long>
+ </locale>
+ </schema>
+
+ <schema>
+ <key>/schemas/apps/metacity/global_keybindings/switch_to_workspace_26</key>
+ <applyto>/apps/metacity/global_keybindings/switch_to_workspace_26</applyto>
+ <owner>metacity</owner>
+ <type>string</type>
+ <default>disabled</default>
+ <locale name="C">
+ <short>Switch to workspace 26</short>
+ <long>
+ The keybinding that switches to workspace 26.
+
+ The format looks like "<Control>a" or
+ "<Shift><Alt>F1".
+
+ The parser is fairly liberal and allows lower or upper case,
+ and also abbreviations such as "<Ctl>" and
+ "<Ctrl>". If you set the option to the special string
+ "disabled", then there will be no keybinding for this
+ action.
+ </long>
+ </locale>
+ </schema>
+
+ <schema>
+ <key>/schemas/apps/metacity/global_keybindings/switch_to_workspace_27</key>
+ <applyto>/apps/metacity/global_keybindings/switch_to_workspace_27</applyto>
+ <owner>metacity</owner>
+ <type>string</type>
+ <default>disabled</default>
+ <locale name="C">
+ <short>Switch to workspace 27</short>
+ <long>
+ The keybinding that switches to workspace 27.
+
+ The format looks like "<Control>a" or
+ "<Shift><Alt>F1".
+
+ The parser is fairly liberal and allows lower or upper case,
+ and also abbreviations such as "<Ctl>" and
+ "<Ctrl>". If you set the option to the special string
+ "disabled", then there will be no keybinding for this
+ action.
+ </long>
+ </locale>
+ </schema>
+
+ <schema>
+ <key>/schemas/apps/metacity/global_keybindings/switch_to_workspace_28</key>
+ <applyto>/apps/metacity/global_keybindings/switch_to_workspace_28</applyto>
+ <owner>metacity</owner>
+ <type>string</type>
+ <default>disabled</default>
+ <locale name="C">
+ <short>Switch to workspace 28</short>
+ <long>
+ The keybinding that switches to workspace 28.
+
+ The format looks like "<Control>a" or
+ "<Shift><Alt>F1".
+
+ The parser is fairly liberal and allows lower or upper case,
+ and also abbreviations such as "<Ctl>" and
+ "<Ctrl>". If you set the option to the special string
+ "disabled", then there will be no keybinding for this
+ action.
+ </long>
+ </locale>
+ </schema>
+
+ <schema>
+ <key>/schemas/apps/metacity/global_keybindings/switch_to_workspace_29</key>
+ <applyto>/apps/metacity/global_keybindings/switch_to_workspace_29</applyto>
+ <owner>metacity</owner>
+ <type>string</type>
+ <default>disabled</default>
+ <locale name="C">
+ <short>Switch to workspace 29</short>
+ <long>
+ The keybinding that switches to workspace 29.
+
+ The format looks like "<Control>a" or
+ "<Shift><Alt>F1".
+
+ The parser is fairly liberal and allows lower or upper case,
+ and also abbreviations such as "<Ctl>" and
+ "<Ctrl>". If you set the option to the special string
+ "disabled", then there will be no keybinding for this
+ action.
+ </long>
+ </locale>
+ </schema>
+
+ <schema>
+ <key>/schemas/apps/metacity/global_keybindings/switch_to_workspace_30</key>
+ <applyto>/apps/metacity/global_keybindings/switch_to_workspace_30</applyto>
+ <owner>metacity</owner>
+ <type>string</type>
+ <default>disabled</default>
+ <locale name="C">
+ <short>Switch to workspace 30</short>
+ <long>
+ The keybinding that switches to workspace 30.
+
+ The format looks like "<Control>a" or
+ "<Shift><Alt>F1".
+
+ The parser is fairly liberal and allows lower or upper case,
+ and also abbreviations such as "<Ctl>" and
+ "<Ctrl>". If you set the option to the special string
+ "disabled", then there will be no keybinding for this
+ action.
+ </long>
+ </locale>
+ </schema>
+
<schema>
<key>/schemas/apps/metacity/global_keybindings/switch_to_workspace_left</key>
only in patch2:
unchanged:
--- metacity-2.8.8.orig/src/prefs.c
+++ metacity-2.8.8/src/prefs.c
@@ -1408,6 +1408,24 @@
{ META_KEYBINDING_WORKSPACE_10, 0, 0, FALSE },
{ META_KEYBINDING_WORKSPACE_11, 0, 0, FALSE },
{ META_KEYBINDING_WORKSPACE_12, 0, 0, FALSE },
+ { META_KEYBINDING_WORKSPACE_13, 0, 0, FALSE },
+ { META_KEYBINDING_WORKSPACE_14, 0, 0, FALSE },
+ { META_KEYBINDING_WORKSPACE_15, 0, 0, FALSE },
+ { META_KEYBINDING_WORKSPACE_16, 0, 0, FALSE },
+ { META_KEYBINDING_WORKSPACE_17, 0, 0, FALSE },
+ { META_KEYBINDING_WORKSPACE_18, 0, 0, FALSE },
+ { META_KEYBINDING_WORKSPACE_19, 0, 0, FALSE },
+ { META_KEYBINDING_WORKSPACE_20, 0, 0, FALSE },
+ { META_KEYBINDING_WORKSPACE_21, 0, 0, FALSE },
+ { META_KEYBINDING_WORKSPACE_22, 0, 0, FALSE },
+ { META_KEYBINDING_WORKSPACE_23, 0, 0, FALSE },
+ { META_KEYBINDING_WORKSPACE_24, 0, 0, FALSE },
+ { META_KEYBINDING_WORKSPACE_25, 0, 0, FALSE },
+ { META_KEYBINDING_WORKSPACE_26, 0, 0, FALSE },
+ { META_KEYBINDING_WORKSPACE_27, 0, 0, FALSE },
+ { META_KEYBINDING_WORKSPACE_28, 0, 0, FALSE },
+ { META_KEYBINDING_WORKSPACE_29, 0, 0, FALSE },
+ { META_KEYBINDING_WORKSPACE_30, 0, 0, FALSE },
{ META_KEYBINDING_WORKSPACE_LEFT, 0, 0, FALSE },
{ META_KEYBINDING_WORKSPACE_RIGHT, 0, 0, FALSE },
{ META_KEYBINDING_WORKSPACE_UP, 0, 0, FALSE },
only in patch2:
unchanged:
--- metacity-2.8.8.orig/src/prefs.h
+++ metacity-2.8.8/src/prefs.h
@@ -98,6 +98,24 @@
#define META_KEYBINDING_WORKSPACE_10 "switch_to_workspace_10"
#define META_KEYBINDING_WORKSPACE_11 "switch_to_workspace_11"
#define META_KEYBINDING_WORKSPACE_12 "switch_to_workspace_12"
+#define META_KEYBINDING_WORKSPACE_13 "switch_to_workspace_13"
+#define META_KEYBINDING_WORKSPACE_14 "switch_to_workspace_14"
+#define META_KEYBINDING_WORKSPACE_15 "switch_to_workspace_15"
+#define META_KEYBINDING_WORKSPACE_16 "switch_to_workspace_16"
+#define META_KEYBINDING_WORKSPACE_17 "switch_to_workspace_17"
+#define META_KEYBINDING_WORKSPACE_18 "switch_to_workspace_18"
+#define META_KEYBINDING_WORKSPACE_19 "switch_to_workspace_19"
+#define META_KEYBINDING_WORKSPACE_20 "switch_to_workspace_20"
+#define META_KEYBINDING_WORKSPACE_21 "switch_to_workspace_21"
+#define META_KEYBINDING_WORKSPACE_22 "switch_to_workspace_22"
+#define META_KEYBINDING_WORKSPACE_23 "switch_to_workspace_23"
+#define META_KEYBINDING_WORKSPACE_24 "switch_to_workspace_24"
+#define META_KEYBINDING_WORKSPACE_25 "switch_to_workspace_25"
+#define META_KEYBINDING_WORKSPACE_26 "switch_to_workspace_26"
+#define META_KEYBINDING_WORKSPACE_27 "switch_to_workspace_27"
+#define META_KEYBINDING_WORKSPACE_28 "switch_to_workspace_28"
+#define META_KEYBINDING_WORKSPACE_29 "switch_to_workspace_29"
+#define META_KEYBINDING_WORKSPACE_30 "switch_to_workspace_30"
#define META_KEYBINDING_WORKSPACE_LEFT "switch_to_workspace_left"
#define META_KEYBINDING_WORKSPACE_RIGHT "switch_to_workspace_right"
#define META_KEYBINDING_WORKSPACE_UP "switch_to_workspace_up"
@@ -198,6 +216,24 @@
META_KEYBINDING_ACTION_WORKSPACE_10,
META_KEYBINDING_ACTION_WORKSPACE_11,
META_KEYBINDING_ACTION_WORKSPACE_12,
+ META_KEYBINDING_ACTION_WORKSPACE_13,
+ META_KEYBINDING_ACTION_WORKSPACE_14,
+ META_KEYBINDING_ACTION_WORKSPACE_15,
+ META_KEYBINDING_ACTION_WORKSPACE_16,
+ META_KEYBINDING_ACTION_WORKSPACE_17,
+ META_KEYBINDING_ACTION_WORKSPACE_18,
+ META_KEYBINDING_ACTION_WORKSPACE_19,
+ META_KEYBINDING_ACTION_WORKSPACE_20,
+ META_KEYBINDING_ACTION_WORKSPACE_21,
+ META_KEYBINDING_ACTION_WORKSPACE_22,
+ META_KEYBINDING_ACTION_WORKSPACE_23,
+ META_KEYBINDING_ACTION_WORKSPACE_24,
+ META_KEYBINDING_ACTION_WORKSPACE_25,
+ META_KEYBINDING_ACTION_WORKSPACE_26,
+ META_KEYBINDING_ACTION_WORKSPACE_27,
+ META_KEYBINDING_ACTION_WORKSPACE_28,
+ META_KEYBINDING_ACTION_WORKSPACE_29,
+ META_KEYBINDING_ACTION_WORKSPACE_30,
META_KEYBINDING_ACTION_WORKSPACE_LEFT,
META_KEYBINDING_ACTION_WORKSPACE_RIGHT,
META_KEYBINDING_ACTION_WORKSPACE_UP,
--T4sUOijqQbZv57TR--