-
Notifications
You must be signed in to change notification settings - Fork 4
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
How to set ralt_switch as level 3 chooser for xkb? #5
Comments
So regular xkb nightmare...
Remember this is just chroot without anything fancy, so with some effort you can use lxde, kwin or other desktop environment which works best for you. I created it and use mostly for fun as my photon q have too low spec to constantly run chromium in background.
First make sure your x11/xkb dir in chroot is in sync with sfos one. Close and unmount image then remove .xkeyboard_synced file. Next chroot will sync your xkb dir and create ~/.config/autostart/setxkbmap.desktop in chroot (based on your sfos dconf options) which sets xkb options every time xfce is started. This probably could be set in better place so it's executed also when pure chromium is used.
https://github.com/elros34/sailfish_ubu_chroot/blob/master/ubu-common.sh#L72
|
I resynchronized the layout following your instructions, thanks. I can confirm the level 3 is assigned to ralt_switch in the xkb file, but I still have the same issue. Perhaps xfce4 just does the same for lalt and ralt. I could try other DEs now if one allows selecting the level 3 chooser, but I assume this should be possible in xfce4 too, maybe in a config file? |
I really don't know as I don't even use xfce in desktop. I choose it here because it allows to change scaling easly. I suggest you to try kwin + libhybris acceleration. It doesn't renders correctly since few releases in my ancient device but I guess it may works correctly in fxtec pro1. Beware it will work in portrait mode unless you use it together with qxcompositor similar to how it's done for xfce. |
xfce4 is a nice choice I think, it's both lightweight and configurable. I tried installing kwin and libhybris using I am trying to understand how your left_alt is recognized as level 3 chooser and not global hotkey for application menu bars. So far I have not found what makes the difference with the modifier key on the xkb layout I use on my device. |
Short follow-up on this: I've tried adding I don't think it is an issue with chroot iself since it works on your end, probably just something missing in our xkb files on the Pro¹, but haven't managed to pinpoint exactly what part of your layout we need to add to ours to make it work. |
I'd also like to see the level three characters, particularly because that's where I have slash and question mark, which are fairly important :) For me the Fn key seems to behave as left alt, not right alt, even when I choose a keyboard layout in xfce that should support it within xfce, but not sure how that relates back to sfos... |
On the F(x)tec Pro¹ running SFOS and current layouts, the level 3 characters in xkb can be selected using the yellow arrow modifier keys, which are set as
ralt_switch
in kernel. This works great in SFOS, but Ubu chroot interprets that as a regularAlt
. PressingAlt + E
for instance will unfold the Edit menu of any menu bar in windows, instead or printing the level 3 character of E on an us-intl layout,é
.On a computer, however, this would be what
lalt
would do, butralt
would not conflict with global shortcuts and it would therefore select the level characters. Can we do that in XFCE4 and Ubu chroot?Applications > Settings > Keyboard does not allow selecting a level 3 chooser. I also tried to edit
/etc/default/keyboard
to addXKBOPTIONS="lv3:ralt_switch"
, but no success. I tried also to change the key withxmodmap -e "keycode 108 = ISO_Level3_Switch"
, didn't see any difference.For reference, here is the left and right yellow arrow keys read in xev:
The text was updated successfully, but these errors were encountered: