• Re: Configure a "widows" key on a 102-key keyboard

    From Johannes Krottmayer@21:1/5 to Van Snyder on Thu Apr 24 07:20:01 2025
    Hello,

    On 4/24/25 01:24, Van Snyder wrote:
    On Wed, 2025-04-23 at 17:04 -0500, David Wright wrote:
    On Wed 23 Apr 2025 at 13:52:07 (-0700), Van Snyder wrote:
    On Wed, 2025-04-23 at 14:26 -0500, David Wright wrote:
      XKBOPTIONS="lv3:ralt_switch,compose:caps,terminate:ctrl_alt_bksp"

    xev says the Windows key is known to X as "Menu."

    XKBOPTIONS="pause:menu"

    didn't work.

    Yes, I did reboot after editing /etc/default/keyboard.

    You might try using xmodmap to set it: the man page has several
    examples. You would then put the command into, say, ~/.xsession
    so that it gets run automatically at startup.

    xev said "pause" is 127, so I used xmodmap to set 127 to Menu:

    xmodmap -e "keycode 127 = Menu"

    xev than said the "pause" key is "Menu." But it didn't raise the KDE
    menu the way the Window key does, even though xev also says the "Window"
    key is "Menu"

    I also put

    xmodmap -e "keycode 127 = Menu"

    into .xsession, made it executable, linked it to .Xsession, and put

    keycode 127 = Menu

    into ~/.Xmodmap

    and when I rebooted, xev said "Pause" is "Menu" but it doesn't start the
    KDE menu.

    Maybe KDE subverts X11 settings.

    Cheers,
    David.



    AFAIK, the tool xmodmap doesn't work on Wayland. But with a little
    search in the Internet there also exists similar tools.

    As workaround you could also define the shortcut for open the
    application launcher (KDE menu) within the KDE settings:

    Settings->Shortcuts->Plasma->Activate Application Launcher Widget

    On my system (running Debian 12) there was ALT-F1 predefined for
    opening the KDE menu.

    Kind regards,

    Johannes

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jeremy Nicoll@21:1/5 to David Wright on Thu Apr 24 12:20:01 2025
    On Thu, 24 Apr 2025, at 05:01, David Wright wrote:

    I don't define Menu in my Window Manager, but I can test
    it works in FireFox. It has the same effect as pressing the
    righthand mouse button ...

    In Windows itself the Windows key and the Menu key are two
    different keys, so surely the scan codes coming off a keyboard
    that actually has both such keys will be different? Is there a
    linux utility that shows scan codes?

    (On one of my laptops the Windows key is next to Ctrl and Fn
    at the bottom left of the keyboard, but "Menu" is what I get
    if I press Fn plus the 0/Ins key on the numeric keypad.

    I'm fairly sure that on another old laptop "Menu" was
    somewhere else, but still needed Fn pressed.

    It's been ages since I saw a "real" Menu key (as well as the
    Windows key).)

    --
    Jeremy Nicoll - my opinions are my own.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to Eduardo M KALINOWSKI on Thu Apr 24 14:40:01 2025
    On Thu, Apr 24, 2025 at 08:57:16 -0300, Eduardo M KALINOWSKI wrote:
    xev told me that the "Windows" key on my keyboard (which opens the KDE menu) is "Super_L". "Menu" probably is another key that is meant to open the context menu (same as right clicking generally).

    On my system (which has an HP USB keyboard, model SK-2502U, part number A4983-60401):

    * The left Wing/Windows key is identified as "Super_L".
    * The right Wing/Windows key would have been "Super_R" but I've mapped
    it to "Multi_key".
    * The Menu key is identified as "Menu".

    I'm using startx to launch an X11 session, and I have a ~/.xsession
    file. In my .xsession file, I have (among other commands):

    xmodmap ~/.xmodmaprc

    And my ~/.xmodmaprc file contains:

    =======================================================================
    keysym Super_R = Multi_key

    keycode 162 = XF86AudioPlay
    keycode 164 = XF86AudioStop
    keycode 144 = XF86AudioPrev
    keycode 153 = XF86AudioNext =======================================================================

    Those last four lines are from a previous keyboard; my current keyboard
    does not have those buttons on it. But the lines in .xmodmaprc are
    not hurting anything, so I left them in.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Frank Guthausen@21:1/5 to Jeremy Nicoll on Thu Apr 24 18:50:01 2025
    On Thu, 24 Apr 2025 11:04:27 +0100
    "Jeremy Nicoll" <jn.ml.dbi.73@letterboxes.org> wrote:

    Is there a linux utility that shows scan codes?

    showkey
    --
    kind regards
    Frank

    -----BEGIN PGP SIGNATURE-----

    iQGzBAEBCgAdFiEE86z15c6qwvuAkhy+zDIN/uu9BloFAmgKagAACgkQzDIN/uu9 BloH5wv/VdHH7RDkDcSEDp5jR5PSJJSJi8rs6b3Su59GTDfPrIz1cpu7X20eX2Jv NQtbZLo+X1mv5Bo174QUR595Fw7envWEvasJaYaF334niMK/ofJbJMe4seN6JWIO Bkx51CcOBin3RKA61SJ/a8u3f4UKe2uNi5bSsovDF1Mdsscr0+ZzQTfbYupyYw/7 hz+Ung2gu8AK9R83az+yLvE9UCaGk0g8efyv+UfHUa5MSXIQF6EgmufrW/M4yt78 K0vnUCBghL6f1rpYkXnC6WHkCKM64HGPQaREb6Dwgmb5S85zGkfEgulRZ5HkORW6 ZWBRm05noqb9CBEs9DZebq8f/diAa9zqpb9nfCLTBIOzWuFDV+Va4HLxb3jYog5H 6yJIKq2nMyrzPgebMWFX6t1CxMsmQzMjrQNb03YnmFfVH74F105SvFahgb9E1Ogb sud/K91K2i2PlG8p60bCYwbL7nNykNKDLipmPOWryjI72C8AdaSNNa+mUvhIhwE7
    kz8kP038
    =U/fi
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)