sleekmason - 2021-11-23

It should be fairly easy to set your native language for keyboard use. Here, we are using the example for the Greek language, with the country code letters: "gr".

To use, replace the "gr" with your own country code letters and follow the instructions below.

Setting up
For a temporary solution per each session, use the below line in a terminal.

setxkbmap -layout "us,gr" -option "grp:alt_shift_toggle"

This can be enabled permanently by adding this line to ~/.config/openbox/autostart:
setxkbmap -layout "us,gr" -option "grp:alt_shift_toggle" &

The lines above allow you to toggle the language using shift + alt on your keyboard.

Be aware that Conky seems to have startup issues with this enabled in autostart. You may need to either refresh Conky, or remove the conky lines from startup, or . . . :)

Also, If you still have issues, try moving "Greek" to the top position Under xfce4-settings -> keyboard -> Layout. Use the arrow keys on the right to move "Greek" to the top position.

For a GUI indicator for the tasktray, try gxkb:
sudo apt update && sudo apt install gxkb

Then place in ~/.config/openbox/autostart
sleep 2 && gxkb &

If you have a tried and proven method you like, let me know!