FS#69116 - [sway] xorg-xkbcomp is a dependency
Attached to Project:
Community Packages
Opened by Hugo Osvaldo Barrera (hobarrera) - Saturday, 26 December 2020, 13:46 GMT
Last edited by Brett Cornwall (ainola) - Thursday, 14 January 2021, 00:50 GMT
Opened by Hugo Osvaldo Barrera (hobarrera) - Saturday, 26 December 2020, 13:46 GMT
Last edited by Brett Cornwall (ainola) - Thursday, 14 January 2021, 00:50 GMT
|
Details
Description:
`xkbcomp` is a dependency. Without it, sway does not apply keyboard configurations specified via `input type:keyboard` in `~/.config/sway`. sway version 1:1.5.1-1 Steps to reproduce: 1. Add `input type:keyboard xkb_options altwin:swap_lalt_lwin,caps:escape,compose:menu` to sway's config. 2. Reload sway. |
This task depends upon
Closed by Brett Cornwall (ainola)
Thursday, 14 January 2021, 00:50 GMT
Reason for closing: Not a bug
Thursday, 14 January 2021, 00:50 GMT
Reason for closing: Not a bug
I can't reproduce this, even with a full reboot, and to be honest I doubt that sway would require an xorg dependency to manage input...
I think this is working via libxkbcommon or maybe xkeyboard-config, i.e. the dependency path is: sway -> wlroots -> libxkbcommon -> xkeyboard-config.
Could you please double-check, maybe something else is at play with the issue you are facing?
Dec 28 17:40:09 victory sway[81146]: sh: line 1: /usr/bin/xkbcomp: No such file or directory
Dec 28 17:40:09 victory sway[81147]: sh: line 1: /usr/bin/xkbcomp: No such file or directory
Dec 28 17:40:09 victory sway[81148]: sh: line 1: /usr/bin/xkbcomp: No such file or directory
Dec 28 17:40:09 victory sway[81149]: sh: line 1: /usr/bin/xkbcomp: No such file or directory
Dec 28 17:40:09 victory sway[81150]: sh: line 1: /usr/bin/xkbcomp: No such file or directory
My config is here: https://gitlab.com/WhyNotHugo/dotfiles/-/blob/38be8b0e/home/.config/sway/config
I'm not 100% certain _which_ feature requires it, but it's likely related to this:
# Keyboard settings
input * {
xkb_layout us
xkb_variant intl
xkb_numlock enable
}
# (1) Swap LeftAlt and Super keys: they're physically in the wrong order.
# (2) Maps CapsLock to Esc: CapsLock is completely useless, Esc is really useful!.
# (3) Make RightControl compose: A bit tricky sometimes, but I need a compose key SOMEWHERE.
input 1:1:AT_Translated_Set_2_keyboard xkb_options altwin:swap_lalt_lwin,caps:escape,compose:rctrl
It doesn't seem like sway is executing any shell scripts that call xkbcomp: https://github.com/swaywm/sway/search?q=xkbcomp
Is it possible that it is your custom script and not sway that is doing that? :)
It seems that sway fails to start xwayland if xorg-xkbcomp is not installed.
Taking a look at the dependency list shows that xorg-xkbcomp is a dependency of xorg-server-common, which is itself a dependency of xorg-xwayland. I'm wondering if you didn't have xorg-xwayland installed.
It seems I must've messed up at some point and removed `xorg-xkbcomp` even though `xorg-xwayland` depended on it.
In any case, looks like this ticket is a non-issue. Apologies for the noise here.