]> git.draconx.ca Git - gentoo-draconx.git/commitdiff
xkeyboard-config: Update capslock-as-control patch.
authorNick Bowler <nbowler@draconx.ca>
Sun, 27 Feb 2011 17:32:15 +0000 (12:32 -0500)
committerNick Bowler <nbowler@draconx.ca>
Sun, 27 Feb 2011 17:32:15 +0000 (12:32 -0500)
This is the version that will actually appear in the next release.

x11-misc/xkeyboard-config/Manifest
x11-misc/xkeyboard-config/files/0001-Add-option-to-bind-Control-modifier-to-CAPS-key-whil.patch

index b6b312a9898f805bbd7f41badebcdfc273d6d0c8..eb9337c105303e20a511cffa6c7ea42dafe53b05 100644 (file)
@@ -1,3 +1,3 @@
-AUX 0001-Add-option-to-bind-Control-modifier-to-CAPS-key-whil.patch 1503 RMD160 2b6e509a313f10cf7b44d4fbdade391d0e4624cd SHA1 a62d824b9635343d7d09ecaf69c3ddecef06bb84 SHA256 0433b284065ad6653014bec19a151ededecfd058eec7f2c56014334275033152
+AUX 0001-Add-option-to-bind-Control-modifier-to-CAPS-key-whil.patch 2250 RMD160 91034ea84605f13963b59917f77b8adcb5327763 SHA1 8b43f9b054a075494d1aabe8dabc5a324e9cfc35 SHA256 0177159eeff7779f5b0721b035ebd6da51b58e852282ce25549a63b4e09d6624
 DIST xkeyboard-config-2.1.tar.bz2 699368 RMD160 235b20c991666a45f1af6d76633679e6eae08d81 SHA1 4e96e0704b2a17b291f98b2240611390e7a99f9e SHA256 f9ee8340f2afadd2397aa4402eaf854da3738977accdbf147bc47c1cc99a3075
 EBUILD xkeyboard-config-2.1.ebuild 1190 RMD160 868c60590b08a265950abc4743f7a1f89aa965bc SHA1 26edb54f228186d923b5a6de5bf44bd5d707b721 SHA256 a35fff84659a4abd536ba322760761b0492fc7194d368121aa6f9af0d352f078
index d12185ead617217395dc2462e00248e18ad088b1..ea55e7684b21e945629a60e68f5cfbc78587a282 100644 (file)
@@ -1,14 +1,15 @@
-From d9963dd166d6e4687864261e0ca31de2a2c7ffa8 Mon Sep 17 00:00:00 2001
+From 2bcfa978e94562f798886a12f86141c9e4a15458 Mon Sep 17 00:00:00 2001
 From: Stephan Hilb <stephan@ecshi.net>
 Date: Sat, 19 Feb 2011 14:06:28 +0100
-Subject: [PATCH] Add option to bind Control modifier to <CAPS> key while preserving the keysym
+Subject: [PATCH] Add option to bind Control modifier to <CAPS> key while preserving the Caps_Lock keysym
 
-Allows the <CAPS> key to act as a Control modifier while still being
-recognized as the caps lock key through its keysym (CapsLock).  See
+Allows the <CAPS> key to act as a Control modifier while still being recognized as the caps lock key through its keysym (CapsLock).
+See #30898 for usecases and arguments.
 ---
  rules/base.o_s.part |    1 +
- symbols/capslock    |    9 +++++++++
- 2 files changed, 10 insertions(+), 0 deletions(-)
+ rules/base.xml.in   |    6 ++++++
+ symbols/capslock    |   11 +++++++++++
+ 3 files changed, 18 insertions(+), 0 deletions(-)
 
 diff --git a/rules/base.o_s.part b/rules/base.o_s.part
 index 6ce87e3..5ac467a 100644
@@ -22,23 +23,42 @@ index 6ce87e3..5ac467a 100644
    ctrl:nocaps         =       +ctrl(nocaps)
    ctrl:lctrl_meta     =       +ctrl(lctrl_meta)
    ctrl:swapcaps               =       +ctrl(swapcaps)
+diff --git a/rules/base.xml.in b/rules/base.xml.in
+index 15581b7..86aab3e 100644
+--- a/rules/base.xml.in
++++ b/rules/base.xml.in
+@@ -5272,6 +5272,12 @@
+           <_description>Caps Lock is disabled</_description>
+         </configItem>
+       </option>
++      <option>
++        <configItem>
++          <name>caps:ctrl_modifier</name>
++          <_description>Make Caps Lock an additional Control but keep the Caps_Lock keysym</_description>
++        </configItem>
++      </option>
+     </group>
+     <group allowMultipleSelection="false">
+       <!-- Using special PC keys (Win, Menu) to work as standard X keys (Super, Hyper, etc.) -->
 diff --git a/symbols/capslock b/symbols/capslock
-index 415e4db..9f58c79 100644
+index 415e4db..18a4045 100644
 --- a/symbols/capslock
 +++ b/symbols/capslock
-@@ -63,3 +63,12 @@ xkb_symbols "numlock" {
+@@ -63,3 +63,14 @@ xkb_symbols "numlock" {
      key <CAPS> {        [       Num_Lock  ]       };
  };
  
-+// This just changes the modifier behavior of the <CAPS> key.
-+// The keysym will be preserved (in most cases Caps_Lock)
-+partial modifier_keys xkb_symbols "ctrl_modifier" {
++// This changes the modifier behavior of the <CAPS> key.
++// The keysym will be reset to Caps_Lock
++partial hidden modifier_keys
++xkb_symbols "ctrl_modifier" {
 +    replace key <CAPS> {
 +        type[Group1] = "ONE_LEVEL",
++        symbols[Group1] = [ Caps_Lock ],
 +        actions[Group1] = [ SetMods(modifiers=Control) ]
 +    };
 +    modifier_map Control { <CAPS> };
 +};
 -- 
-1.7.3.4
+1.7.4.1