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

[Package]: setxkbmap #14035

Closed
1 task done
Zeioth opened this issue Dec 21, 2022 · 12 comments · Fixed by #14041
Closed
1 task done

[Package]: setxkbmap #14035

Zeioth opened this issue Dec 21, 2022 · 12 comments · Fixed by #14041
Labels
package request A new package was requested. x11 Issue is related to stuff requiring X11 environment or x11-packages.

Comments

@Zeioth
Copy link

Zeioth commented Dec 21, 2022

Why do you want to add this package to Termux?

To change my keyboard distribution to spanish/spain.

Home page URL

No response

Source code URL

https://archlinux.org/packages/extra/x86_64/xorg-setxkbmap/

Packaging policy acknowledgement

Additional information

No response

@Zeioth Zeioth added the package request A new package was requested. label Dec 21, 2022
@xtkoba xtkoba added the x11 Issue is related to stuff requiring X11 environment or x11-packages. label Dec 22, 2022
@Zeioth
Copy link
Author

Zeioth commented Dec 22, 2022

cannot test it, do I need to add some testing repo?

@xtkoba
Copy link
Contributor

xtkoba commented Dec 22, 2022

Just download the artifact (zip file) from GitHub Actions and extract and install the DEB file in it.

@Zeioth
Copy link
Author

Zeioth commented Dec 22, 2022

Dependencies required:

The following packages have unmet dependencies:
xorg-setxkbmap:arm : Depends: libx11:arm but it is not installable
                      Depends: libxkbfile:arm but it is not installable
                      Depends: libxrandr:arm but it is not installable

Screenshot_20221222_160333_Termux.jpg

@xtkoba
Copy link
Contributor

xtkoba commented Dec 22, 2022

Could it be that you are on aarch64 environment? Also make sure to subscribe to x11-repo.

@Zeioth
Copy link
Author

Zeioth commented Dec 22, 2022

aarch64 installs correctly thank you. I'm gonna try to change my kb layout and confirm the case of use is solved.

@Zeioth
Copy link
Author

Zeioth commented Dec 22, 2022

Ok so here is my report:

  • I3: Works as expected. Having the I3 setting xkb_layout "es" on the config file is enough.
  • XFCE4: Adding "setxkbmap es" in xfce4-settings startup settings work fine. But ignores changing kb distribution from xfce settings (no errors, researching why).

EDIT: I cannot find what's the deal with xfce4-settings keyboard layout. Are we modifying xfce in some way? It could also be due to xfce4-exo.

@Zeioth
Copy link
Author

Zeioth commented Dec 22, 2022

Opened a ticket on EXO. Will close if confirmed it's a termux xfce4-settings issue.
https://gitlab.xfce.org/xfce/exo/-/issues/95

@Zeioth
Copy link
Author

Zeioth commented Dec 22, 2022

I figured out how to fix "xfce setting keyboard layout":

We need to provide the symbolic link:

ln -s "/data/data/com.termux/files/usr/bin/xkbcomp" "/data/data/com.termux/files/usr/share/X11/xkb/xkbcomp"

That make "xfce setting keyboard layout" work fine. The reason can be tested with the command

xfsettingsd --replace

This outputs that 'libxklavier' cannot execute 'xkbcomp' becaure It expects it to be in '/share/X11/xkb/xkbcomp' but it actually is in '/bin/xkbcomp'.

@Zeioth
Copy link
Author

Zeioth commented Dec 22, 2022

Please submit said symbolic link through the package you consider optimal. After that, this can be closed.

@xtkoba
Copy link
Contributor

xtkoba commented Dec 22, 2022

Should instead fix the path to xkbcomp.

@Zeioth
Copy link
Author

Zeioth commented Dec 31, 2022

Linking the package here in case someone might need it:
https://github.com/termux/termux-packages/actions/runs/3764124625

@sylirre
Copy link
Member

sylirre commented Dec 31, 2022

@Zeioth Package is installable via pkg install xorg-setxkbmap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package request A new package was requested. x11 Issue is related to stuff requiring X11 environment or x11-packages.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants