From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 733AA158094 for ; Sun, 28 Aug 2022 01:18:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CD910E091A; Sun, 28 Aug 2022 01:18:05 +0000 (UTC) Received: from barracuda.ebox.ca (barracuda.ebox.ca [96.127.255.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8F6BDE082B for ; Sun, 28 Aug 2022 01:18:05 +0000 (UTC) X-ASG-Debug-ID: 1661585449-0c856e13fd77d40001-LfjuLa Received: from smtp.ebox.ca (smtp.ebox.ca [96.127.255.82]) by barracuda.ebox.ca with ESMTP id jwpEGLDjXn1Wn52E (version=TLSv1 cipher=AES128-SHA bits=128 verify=NO) for ; Sat, 27 Aug 2022 03:30:49 -0400 (EDT) X-Barracuda-Envelope-From: waltdnes@waltdnes.org X-Barracuda-RBL-Trusted-Forwarder: 96.127.255.82 Received: from waltdnes.org (unknown [198.58.217.41]) by smtp.ebox.ca (Postfix) with SMTP id B69C7441D6D for ; Sat, 27 Aug 2022 03:30:48 -0400 (EDT) Received: by waltdnes.org (sSMTP sendmail emulation); Sat, 27 Aug 2022 03:30:57 -0400 X-Barracuda-RBL-IP: 198.58.217.41 X-Barracuda-Effective-Source-IP: 198-58-217-41.on.cable.ebox.net[198.58.217.41] X-Barracuda-Apparent-Source-IP: 198.58.217.41 From: "Walter Dnes" Date: Sat, 27 Aug 2022 03:30:57 -0400 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Software emulation of angled arrow keys on Lenovo Thinkpad? Message-ID: X-ASG-Orig-Subj: Re: [gentoo-user] Software emulation of angled arrow keys on Lenovo Thinkpad? References: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Barracuda-Connect: smtp.ebox.ca[96.127.255.82] X-Barracuda-Start-Time: 1661585449 X-Barracuda-Encrypted: AES128-SHA X-Barracuda-URL: https://96.127.255.19:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at ebox.ca X-Barracuda-Scan-Msg-Size: 3754 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=5.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.100364 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Archives-Salt: 8dc0b8f3-69f0-4c00-b3c4-73fdf4d63d38 X-Archives-Hash: 314d2feff99f70849f3f12f56168ef64 That's on a real numeric keypad. Meanwhile on the Lenovo Thinkpad left shift KeyPress event, serial 38, synthetic NO, window 0xe00001, root 0x256, subw 0x0, time 25019825, (528,-50), root:(532,488), state 0x0, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 38, synthetic NO, window 0xe00001, root 0x256, subw 0x0, time 25019913, (528,-50), root:(532,488), state 0x1, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False exit KeyPress event, serial 38, synthetic NO, window 0xe00001, root 0x256, subw 0x0, time 25211416, (708,53), root:(712,591), state 0x0, keycode 115 (keysym 0xff57, End), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 38, synthetic NO, window 0xe00001, root 0x256, subw 0x0, time 25211553, (708,53), root:(712,591), state 0x0, keycode 115 (keysym 0xff57, End), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False pgdn KeyPress event, serial 38, synthetic NO, window 0xe00001, root 0x256, subw 0x0, time 25338798, (677,2), root:(681,540), state 0x0, keycode 117 (keysym 0xff56, Next), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 38, synthetic NO, window 0xe00001, root 0x256, subw 0x0, time 25338934, (677,2), root:(681,540), state 0x0, keycode 117 (keysym 0xff56, Next), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False home KeyPress event, serial 38, synthetic NO, window 0xe00001, root 0x256, subw 0x0, time 25427458, (880,-8), root:(884,530), state 0x0, keycode 110 (keysym 0xff50, Home), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 38, synthetic NO, window 0xe00001, root 0x256, subw 0x0, time 25427562, (880,-8), root:(884,530), state 0x0, keycode 110 (keysym 0xff50, Home), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False pgup KeyPress event, serial 38, synthetic NO, window 0xe00001, root 0x256, subw 0x0, time 25478798, (767,108), root:(771,646), state 0x0, keycode 112 (keysym 0xff55, Prior), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 38, synthetic NO, window 0xe00001, root 0x256, subw 0x0, time 25478901, (767,108), root:(771,646), state 0x0, keycode 112 (keysym 0xff55, Prior), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False ################################################################### Is it possible to map {LEFT-SHIFT} plus End, PgDn, Home, PgUp to "real keypad" 1, 3, 7, 9 respectively? If the {LEFT-SHIFT} is not being held down, then the End, PgDn, Home, PgUp would have their regular meanings. To be more specific, while "keycode 50 (keysym 0xffe1, Shift_L)" is in effect (i.e. {Left}{SHIFT} is being held down)... {END} (aka down left) maps to "keycode 87 (keysym 0xffb1, KP_1)" {PgDn} (aka down right) maps to "keycode 89 (keysym 0xffb3, KP_3)" {HOME} (aka up left) maps to "keycode 79 (keysym 0xffb7, KP_7)" {PgUp} (aka up right) maps to "keycode 81 (keysym 0xffb9, KP_9)" -- Walter Dnes I don't run "desktop environments"; I run useful applications