GithubHelp home page GithubHelp logo

AltGr key switch for diacritics about labwc HOT 5 OPEN

letkan avatar letkan commented on September 26, 2024
AltGr key switch for diacritics

from labwc.

Comments (5)

letkan avatar letkan commented on September 26, 2024 1

Adding XKB_DEFAULT_LAYOUT=ro in .config/labwc/environment may fix the issue.

Right now I have XKB_DEFAULT_LAYOUT=us,ro in environment. The thing is, my real default keyboard is the English one but when I need to type some Romanian words that have diacritics I'm using the AltGr key for those, I don't want to change the entire layout to Romanian.

EDIT:

what I'm getting now is a menu eventually

I wonder what causes this though. Are you using the default config where A-Space is bound to ShowMenu action?

I'm using the default US keyboard, I changed nothing since I installed Arch.

from labwc.

letkan avatar letkan commented on September 26, 2024 1

Unfortunately with those changes nothing changed, the behavior is the same as before after labwc --reconfigure.
But... uncommenting dbus-update-activation-environment --all in autostart (why didn't I do that before?) and a reboot did the trick meaning that AltGr + a = ă exactly like setxkbmap ro from X while alt-shift + a did nothing.
Thanks a lot for your help, problem solved.

from labwc.

tokyo4j avatar tokyo4j commented on September 26, 2024

Adding XKB_DEFAULT_LAYOUT=ro in .config/labwc/environment may fix the issue.

EDIT:

what I'm getting now is a menu eventually

I wonder what causes this though. Are you using the default config where A-Space is bound to ShowMenu action?

from labwc.

tokyo4j avatar tokyo4j commented on September 26, 2024

Ah, I got what you mean. Looks like you want to update keyboard layout from inside session, like sway's swaymsg input '*' xkb_layout ro does.

Unfortunately, labwc doesn't offer rich IPC mechanisms like swaymsg or hyprctl.

Alternatives are:

  • Use options like XKB_DEFAULT_OPTIONS=grp:alt_shift_toggle
  • Replace XKB_DEFAULT_LAYOUT=us in ~/.config/labwc/environment with XKB_DEFAULT_LAYOUT=ro and run labwc --reconfigure

from labwc.

letkan avatar letkan commented on September 26, 2024

Unfortunately with those changes nothing changed, the behavior is the same as before after labwc --reconfigure.
But... uncommenting dbus-update-activation-environment --all in autostart (why didn't I do that before?) and a reboot did the trick meaning that AltGr + a = ă exactly like setxkbmap ro from X while alt-shift + a did nothing. Good to know. I will try also with XKB_DEFAULT_LAYOUT=us see if changes anything.
Thanks a lot for your patience, problem solved.

from labwc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.