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

Question about libxkbcommon and wayland #9

Open
avs-origami opened this issue Dec 2, 2024 · 2 comments
Open

Question about libxkbcommon and wayland #9

avs-origami opened this issue Dec 2, 2024 · 2 comments

Comments

@avs-origami
Copy link

avs-origami commented Dec 2, 2024

Hey, I was looking through these repos to figure out how to set up wayland (for my project, Tin Can) and noticed that you're somehow able to avoid dependency on xkeyboard-config. For me, I can't start a wayland session without this package since it provides the keyboard layout info in /usr/share/X11/xkb. I couldn't seem to figure out how you do this just looking through the packages, so I was wondering if you could explain this / point me to the relevant files.

@firasuke
Copy link
Member

firasuke commented Dec 2, 2024

Hey, I was looking through these repos to figure out how to set up wayland (for my project, Tin Can) and noticed that you're somehow able to avoid dependency on xkeyboard-config. For me, I can't start a wayland session without this package since it provides the keyboard layout info in /usr/share/X11/xkb. I couldn't seem to figure out how you do this just looking through the packages, so I was wondering if you could explain this / point me to the relevant files.

Thanks for your interest in glaucus!

libxkbcommon supports disabling x11 support, as you can see in the build file.

@avs-origami
Copy link
Author

Well that's what I thought too, but I have this option set and it still expects the keyboard layouts:

meson setup \
    -Dprefix=/usr \
    -Dlibexecdir=/usr/lib \
    -Denable-wayland=true \
    -Denable-x11=false \
    build

And it clearly doesn't provide these files:

.
├── usr
│   ├── bin
│   │   └── xkbcli
│   ├── include
│   │   └── xkbcommon
│   │       ├── xkbcommon-compat.h
│   │       ├── xkbcommon-compose.h
│   │       ├── xkbcommon.h
│   │       ├── xkbcommon-keysyms.h
│   │       ├── xkbcommon-names.h
│   │       └── xkbregistry.h
│   ├── lib
│   │   ├── libxkbcommon.so -> libxkbcommon.so.0
│   │   ├── libxkbcommon.so.0 -> libxkbcommon.so.0.0.0
│   │   ├── libxkbcommon.so.0.0.0
│   │   ├── libxkbregistry.so -> libxkbregistry.so.0
│   │   ├── libxkbregistry.so.0 -> libxkbregistry.so.0.0.0
│   │   ├── libxkbregistry.so.0.0.0
│   │   ├── pkgconfig
│   │   │   ├── xkbcommon.pc
│   │   │   └── xkbregistry.pc
│   │   └── xkbcommon
│   │       ├── xkbcli-compile-compose
│   │       ├── xkbcli-compile-keymap
│   │       ├── xkbcli-how-to-type
│   │       ├── xkbcli-interactive-evdev
│   │       ├── xkbcli-interactive-wayland
│   │       └── xkbcli-list
│   └── share
│       ├── bash-completion
│       │   └── completions
│       │       └── xkbcli
│       └── man
│           └── man1
│               ├── xkbcli.1
│               ├── xkbcli-compile-compose.1
│               ├── xkbcli-compile-keymap.1
│               ├── xkbcli-how-to-type.1
│               ├── xkbcli-interactive-evdev.1
│               ├── xkbcli-interactive-wayland.1
│               └── xkbcli-list.1
└── var
    └── cache
        └── arc
            └── installed
                └── [email protected]

17 directories, 30 files

Although I suppose it could be the compositor. I'm using velox (swc based) and not sway (wlroots based).

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