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

Bug#152286: xlibs: [xkb] patch to add options alt:leftaltrightmeta and alt:leftmetarightalt



On 2004-09-02T00:21:08+0200, Denis Barbier wrote:
> Chung-chieh Shan wrote:
> > I use both Meta and Alt in X, separately.  When I switch keyboards
> > (something I do often as I plug various USB keyboards into my laptop),
> > I often find it difficult to get used to where keys labelled Command,
> > Option, Alt, Meta, Diamond, etc. are located.  I find it easiest to
> > simply declare all such keys on the left Alt, and all such keys on the
> > right Meta.  Here is a patch (to installed conffiles) for an XkbOption
> > "alt:leftaltrightmeta" that makes LWIN into Alt_R and RWIN into Meta_L.
> > It also adds an opposite option "alt:leftmetarightalt".
> Hi, your patch was not attached, can you please send it?

Hello,

Sorry for the delay -- I finally found the patch!  It is attached.

Thanks,
	Ken

-- 
Edit this signature at http://www.digitas.harvard.edu/cgi-bin/ken/sig
Asia tsunami blog: aid, donations, etc.           http://asiaquake.org/
Disasters Emergency Committee                        http://dec.org.uk/
International Federation of Red Cross and Red Crescent http://ifrc.org/
diff -ur /etc/X11/xkb/rules/xfree86 xkb/rules/xfree86
--- /etc/X11/xkb/rules/xfree86	Mon Dec 10 05:34:26 2001
+++ xkb/rules/xfree86	Sun Jul  7 17:14:59 2002
@@ -154,6 +154,8 @@
   alt:altismeta		=	+alt(altismeta)
   alt:leftaltismeta	=	+alt(leftaltismeta)
   alt:rightaltismeta	=	+alt(rightaltismeta)
+  alt:leftaltrightmeta	=	+alt(leftaltrightmeta)
+  alt:leftmetarightalt	=	+alt(leftmetarightalt)
 
 ! option		=	compat
   grp_led:num		=	+leds(num)
diff -ur /etc/X11/xkb/symbols/alt xkb/symbols/alt
--- /etc/X11/xkb/symbols/alt	Wed Jan  9 13:59:22 2002
+++ xkb/symbols/alt	Sun Jul  7 17:11:44 2002
@@ -38,3 +38,21 @@
 xkb_symbols "rightaltismeta" {
     modifier_map Mod1   { Alt_R, Meta_R };
 };
+
+// make the left keys alt and the right keys meta
+partial modifier_keys
+xkb_symbols "leftaltrightmeta" {
+    key <LALT>  {  symbols[Group1] = [ Alt_L ] };
+    key <LWIN>	{  symbols[Group1] = [ Alt_R ] };
+    key <RALT>	{  symbols[Group1] = [ Meta_L ] };
+    key <RWIN>  {  symbols[Group1] = [ Meta_R ] };
+};
+
+// make the left keys meta and the right keys alt
+partial modifier_keys
+xkb_symbols "leftmetarightalt" {
+    key <LALT>  {  symbols[Group1] = [ Meta_R ] };
+    key <LWIN>	{  symbols[Group1] = [ Meta_L ] };
+    key <RALT>	{  symbols[Group1] = [ Alt_R ] };
+    key <RWIN>  {  symbols[Group1] = [ Alt_L ] };
+};
diff -ur /etc/X11/xkb/symbols.dir xkb/symbols.dir
--- /etc/X11/xkb/symbols.dir	Mon Dec 10 05:34:27 2001
+++ xkb/symbols.dir	Sun Jul  7 17:09:40 2002
@@ -352,3 +352,5 @@
 --p----- -m------ alt(altismeta)
 --p----- -m------ alt(leftaltismeta)
 --p----- -m------ alt(rightaltismeta)
+--p----- -m------ alt(leftaltrightmeta)
+--p----- -m------ alt(leftmetarightalt)

Attachment: signature.asc
Description: Digital signature


Reply to: