I create little script to fix problem for switching araound preffered keyboard layouts.
You can map in fluxbox keys file this script:
Shift Control k :execcommand xkbSwitch
1) Copy this script into folder which you have in your
$PATH.
2) Create hidden folder
~/.xkbSwitch
3) Create file
~/.xkbSwitch/xkb_layouts and write your preffered layouts (e.g us, de, sk, ...) into file, every layout at new line.
After restart your fluxbox, you can use CTRL+SHIFT+k for araound changing your layouts or execute command
xkbSwitch for it.
xkbSwitch script:
#!/bin/sh
LAYOUTS_FILE=~/.xkbSwitch/xkb_layouts
INDEX_FILE=~/.xkbSwitch/index
if [ ! -r $LAYOUTS_FILE ]; then
echo 'File $LAYOUTS does not exist!'
exit 0
else
if [ ! -r $INDEX_FILE ]; then
echo '0' > $INDEX_FILE
fi
read line <$INDEX_FILE
let "INDEX=$line+1"
INNER_INDEX=0
while read line
do
LAYOUTS[$INNER_INDEX]=$line
let "INNER_INDEX +=1"
done <$LAYOUTS_FILE
if [ $INDEX -ge $INNER_INDEX ]; then
let "INDEX -=$INNER_INDEX"
fi
#echo ${LAYOUTS[$INDEX]}
echo $INDEX >$INDEX_FILE
setxkbmap -layout ${LAYOUTS[$INDEX]}
fi
#//// end of script
I'm sorry, but spaces in script are not visible in this reply

When you have any problems with script email me:
komornik AT linux DOT sk
I hope that I help you.