1

How to do keyboard layout switch like this:

 alt + shift | scroll lock | current layout     
-------------+-------------+----------------
      0      |      0      |    colemak
      0      |      1      |    qwerty
      1      |      0      |      ru
      1      |      1      |      ru

By 1's and 0's I mean state. Initially state is 0, so If scroll lock was pressed it goes to 1, and if scroll lock was pressed again and it goes to 0. Same for alt+shift.

I'm using xfce4

  • by 1's and 0's, you're implying whether that key combination is being held? (your Question was flagged as "unclear", so some more words might be helpful) – Jeff Schaller May 25 '17 at 13:04
  • @JeffSchaller updated the question – KgOfHedgehogs May 25 '17 at 13:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.