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

Bug#913413: xkb-data: Map Shift+Win to Menu



Package: xkb-data
Version: 2.19-1+deb9u1
Severity: wishlist
File: /usr/share/X11/xkb/symbols/altwin

Dear Maintainer,

My laptop has got only one "Window" key and no Menu keys. I needed to
add the following lines to the altwin file to make the Shift+Win_L
combination act as a Menu key.

--8<---------------cut here---------------start------------->8---
partial modifier_keys
xkb_symbols "lwin_menu" {
    key <LWIN> { [ Super_L, Menu ] };
};
--8<---------------cut here---------------end--------------->8---

Most probably the following line may be useful (I haven't tested them)
for others

--8<---------------cut here---------------start------------->8---
// Pressing the Shift+Win (left or right, respectively) acts as Menu
// while Shift+Win acts as Menu.
partial modifier_keys
xkb_symbols "win_switch" {
    include "altwin(lwin_menu)"
    include "altwin(rwin_menu)"
};

partial modifier_keys
xkb_symbols "rwin_menu" {
    key <RWIN> { [ Super_R, Menu ] };
};
--8<---------------cut here---------------end--------------->8---

Apparently also /share/X11/xkb/rules/evdev and (probably)
/usr/share/X11/xkb/rules/base need to be modified by adding

--8<---------------cut here---------------start------------->8---
  altwin:lwin_menu      =       +altwin(rwin_menu)
  altwin:rwin_menu      =       +altwin(rwin_menu)
  altwin:win_menu       =       +altwin(win_menu)
--8<---------------cut here---------------end--------------->8---

next to other altwin declarations.

From this moment on setting altwin:lwin_menu is available as an xkb
option e.g. in /etc/default/keyboard.

-- System Information:
Debian Release: 9.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-8-amd64 (SMP w/4 CPU cores)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8), LANGUAGE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

-- no debconf information

-- 
Było mi bardzo miło.                                  --- Rurku. --- ...
>Łukasz<                                --- To dobrze, że mnie słuchasz.

Attachment: signature.asc
Description: PGP signature


Reply to: