So, this is something I've been dreaming of for years now. I've sporadically foraged for a solution on Google but never really found anything. I was told once by someone on IRC that it's possible but never really seen how this could be done.
Here's what I want.
I use en and ru keyboard layouts as two primary languages of input that I work with on a daily basis. I use Shift+Caps_Lock to toggle these layouts. Sometimes I need to type in ua and pl, and I want to have them in a separate group of layouts that would be toggled by pressing say L_Win+Caps_Lock.
So, whenever I press L_Win+Caps_Lock I start cycling between ua and pl, and when I need to get back to my standard group of en and ru I would press Shift+Caps_Lock.
This description is in no way linked to any real understanding of how the existing keyboard layout switching framework works. It's just me imagining the ideal scenario.
Well, dear super users, can this be done on Linux? If yes, how?