Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xkbcomp has no effect when run by xplugd #10

Open
ssokolow opened this issue Oct 1, 2021 · 1 comment
Open

xkbcomp has no effect when run by xplugd #10

ssokolow opened this issue Oct 1, 2021 · 1 comment

Comments

@ssokolow
Copy link

ssokolow commented Oct 1, 2021

xplugd Version: a878b76 (Current git HEAD as of posting this)

I'm trying to use this xplugrc. It works perfectly fine when called manually as /home/ssokolow/.config/xplugrc keyboard 15 connected 'ATI Remote Wonder II' but has no effect when the same command is called by xplugd -n:

#!/bin/sh
set -x

echo "$0" \"$1\" \"$2\" \"$3\" \"$4\"
case "$1,$3,$4" in
    keyboard,connected,*)
        xkbcomp ~/.config/custom.xkb "$DISPLAY" 2>&1 | grep -Ev 'Warning:|Symbols ignored|keycodes above 255|This warning|conflicting fields'
        ;;
esac
exit 0

After trying half a dozen approaches to get my ATi Remote Wonder II's KEY_QUESTION to map to something other than NoSymbol when a temporary disconnect occurs, learning more about the X11 keyboard system than any man should have to, and getting a lot of practice in fending off frustration, I gave up and backported the current "state-of-the-art" for Wayland (patching /usr/share/X11/xkb/symbols/us) to my X11 setup.

@CaMeLCaseError
Copy link

i had the same issue. i solved the problem by a workaround: delaying the execution of xkbcomp in xplugrc using a line of "sleep 2" did it. not sure how much delay is necessary...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants