You are not logged in.
Sometimes you want to setup switching keyboard layouts using only X server - because there is no DE, or no DE keyboard plugin, or it's broken, or lacks needed functionality. You can easily configure X server to switch keyboard layouts, but I could not find way of keeping layout for each window separately using only X server. Hence this package: https://aur.archlinux.org/packages.php?ID=54504
Tested under xfce4.
Example of usage (~/.xinitrc file)
#!/bin/sh
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
export LANG=ru_RU.utf8
setxkbmap -layout 'us,ru(winkeys)' -model pc105 -option grp:rwin_toggle,grp_led:num
perWindowLayoutD
exec ck-launch-session dbus-launch startxfce4
Offline
Unfortunately, doesn't work properly with Openbox. Breaks on Alt+Tab.
Offline
I've just installed openbox 3.5.0-4 and tried switching layouts. Alt+Tab works well for me - layout does change when changing windows. But there is another problem: if I close some window and focus goes to another window, layout isn't restored for this new focused window. Going to fix that.
As for Alt+Tab openbox, I cannot reproduce any problem. Could you please be more specific, what the problem you see?
Offline
Fixed in 0.4 restoring layout after closing window under openbox. Also fixed restoring layouts after minimizing windows.
Offline
Well, with 0.4 everything seems to be working fine. Totally awesome, thanks.
Offline
By the way, can someone recommend an app to display a layout as a tray icon, that doesn't totally suck?
Offline
I use num lock as layout indicator. It's not what you ask exactly but it is quite convenient, it doesn't require any additional software to run and doesn't occupy any place on the screen.
setxkbmap -layout 'us,ru(winkeys)' -model pc105 -option grp:rwin_toggle,grp_led:num
The stuff is: grp_led:num
Offline
Yes, I've noticed, but that will not suite my case, where I have 3 layouts. And usually I don't look at a keyboard when typing anyway.
Offline
I use fbxkb https://aur.archlinux.org/packages.php?ID=3458
Offline
Thanks Man,
Still After almost a decade still works like a charm.
Bests
------------
Just used
perWindowLayoutD
Last edited by bijanbina (2022-05-06 09:11:12)
Offline