Switching between two (or more) keyboard layouts in Openbox DE is a task that's quite easy to accomplish, although it might not be so obvious as in other desktop environments. This solution was tested on Arch Linux. You just need to edit this file (assuming you want to switch between English and Ukrainian Phonetic layouts with Alt-Shift): /etc/X11/xorg.conf.d/01-keyboard-layout.conf
Section "InputClass" Identifier "keyboard-layout" Driver "evdev" MatchIsKeyboard "yes" Option "XkbLayout" "us,ua(phonetic)" Option "XkbModel" "pc105" Option "XkbOptions" "grp:alt_shift_toggle" EndSectionIf you have Nvidia card, don't forget to edit /etc/X11/xorg.conf.d/20-nvidia.conf and change Driver from "kbd" to "evdev" in InputDevice section:
Section "InputDevice" Identifier "Keyboard0" Driver "evdev" EndSectionYou would also need to edit ~/.config/openbox/autostart file and comment out setxkbmap line to prevent conflict with evdev. Alternative solution would be not to use evdev rules at all and just put setxkbmap -layout "us,ua(phonetic)" -option "grp:alt_shift_toggle" into this file, though it's recommended to use evdev because it's more modern approach to managing layouts on Linux.