[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#362850: xkb-data: [xkb] support alt-caps to toggle groups



Package: xkb-data
Severity: wishlist
Tags: patch


I want alt-caps to toggle the group. I've been
using it for years now, and now I want to get it
supported officially.

The fix is by adding a few lines in two files. Starting
from the xkb "home" (currently /etc/X11/xkb, being moved
to /usr/share/X11/xkb).


--- symbols/group.orig  2005-06-01 08:56:37.000000000 +0300
+++ symbols/group       2005-06-16 12:25:18.000000000 +0300
@@ -295,3 +295,15 @@
        virtualMods= AltGr
     };
 };
+
+// using the group(alt_caps_toggle) map, pressing:
+//     Alt+Caps Lock toggles group
+//     Caps Lock toggles caps lock
+partial modifier_keys
+xkb_symbols "alt_caps_toggle" {
+    key        <CAPS> {
+       type="PC_SYSRQ",
+       symbols[Group1]= [  Caps_Lock,  ISO_Next_Group]
+    };
+};
+
--- rules/xorg.orig     2006-03-20 18:15:43.000000000 +0200
+++ rules/xorg  2006-03-24 02:51:33.000000000 +0200
@@ -901,6 +901,7 @@
   grp:ctrl_shift_toggle        =       +group(ctrl_shift_toggle)
   grp:caps_toggle      =       +group(caps_toggle)
   grp:shift_caps_toggle        =       +group(shift_caps_toggle)
+  grp:alt_caps_toggle   =       +group(alt_caps_toggle)
   grp:ctrl_alt_toggle  =       +group(ctrl_alt_toggle)
   grp:alt_shift_toggle =       +group(alt_shift_toggle)
   grp:menu_toggle      =       +group(menu_toggle)



After this, you can just add grp:alt_caps_toggle to
the XkbOptions in the xorg.conf file.


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)



Reply to: