Robert Spiteri <rspiteri01@gmail.com> writes: > SOLVED: > > I made a script called switch_keyboard in /usr/bin containing: > > #!/bin/bash > setxkbmap -option grp:switch,grp:alts_toggle gb,us > > then added a desktop file in /etc/xdg/autostart that calls the script when > xfce starts I use /etc/X11/Xsessions.d/ instead, which I believe is more portable (e.g. xinit will honour it).