Well, I was deep reading into
setxkbmap options and changing layouts posts, but I don't find what I need. The problems is the following:
I have a laptop running Fedora 23 Cinnamon Spin, the laptop use es_latam layout, but in the office I use an USB keyboard with es_ES layout. I have both layouts configured in the OS, but I have to change it manually.
The question is: Is there a way to detect what keyboard I'm using and set the keyboard automatically according to this ?