Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] xserver-xorg in debian 11 and hotkeys on release

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
windwalker78
Posts: 8
Joined: 2010-04-14 19:48

[SOLVED] xserver-xorg in debian 11 and hotkeys on release

#1 Post by windwalker78 »

Hi,

I'm a slavic user and most people around me are keen on switching the keyboard layouts using, either L_CTRL+L_SHIFT or L_ALT+L_SHIFT.
This is fairly easy to achive, but the real issue with X is that they work on key press, which makes it impossible to use hokey combinations like L_CTRL+L_SHIFT+TAB, as TAB is never reached.

I see this is achieved in Ubuntu via patch (BUG 865 in bugs.freedesktop.org) for xorg-server. Here in Debian I see xserver-xorg and things are quite diffent. I cannot apply the patch for xkbActions.c:

https://bugs.freedesktop.org/attachment.cgi?id=122717

or use prebuild packages for ubuntu:

https://itectec.com/ubuntu/ubuntu-18-04 ... -language/

Is there any chance of accomplishing this on key release action in some fairly easy way?

Regards
Last edited by windwalker78 on 2021-03-23 11:07, edited 2 times in total.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: xserver-xorg in debian 11 and hotkeys on release

#2 Post by Head_on_a_Stick »

windwalker78 wrote:I cannot apply the patch for xkbActions.c
Why not? What happens when you try?

I take it you've read the documentation?
deadbang

windwalker78
Posts: 8
Joined: 2010-04-14 19:48

Re: xserver-xorg in debian 11 and hotkeys on release

#3 Post by windwalker78 »

Head_on_a_Stick wrote:
windwalker78 wrote:I cannot apply the patch for xkbActions.c
Why not? What happens when you try?

I take it you've read the documentation?
I cannot patch it, because there is no such file in the debian source. Somehow, not only the names differ xserver-xorg (debian) and xorg-server (ubuntu), but also the source files in them.
I could not identify file "xkbActions.c" in any of the debian xserver-input-* packages as well.
Tried also apt-file, but no luck.

windwalker78
Posts: 8
Joined: 2010-04-14 19:48

Re: xserver-xorg in debian 11 and hotkeys on release

#4 Post by windwalker78 »

I managed to do this with the help of:

https://gist.github.com/elw00d/08269171 ... 11bc6cf885

This is for my debian 11:

Code: Select all

apt-get build-dep xserver-xorg-core

apt-get source xserver-xorg-core

wget https://bugs.freedesktop.org/attachment.cgi?id=129861

patch xorg-server-1.20.10/xkb/xkbActions.c < attachment.cgi\?id\=129861

cd xorg-server-1.20.10/

apt-get install devscripts

debuild -us -uc

cd ..

dpkg -i xserver-xorg-core_1.20.10-3_amd64.deb


cat <<EOF>> /etc/apt/preferences.d/xserver-xorg-core
Package: xserver-xorg-core
Pin: version 2:1.20.10-3
Pin-Priority: 700
EOF

Post Reply