original xkbswitch-macosx's code is full of bug and hard to understand.
for eample:
it use input source list index as an id, makes id differs on
different machine
it show layout by hard code it. just couldn't know why
it couldn't set im.rime.inputmethod.Squirrel.Rime because it believes
every sourceid has an com.apple prefix and hard code it.
so i modify it (copy from https://github.com/minoki/InputSourceSelector,
change api, which earlier and better)
original xkbswitch-macosx's code is full of bug and hard to understand.
for eample:
it use input source list index as an id, makes id differs on different machine it show layout by hard code it. just couldn't know why it couldn't set im.rime.inputmethod.Squirrel.Rime because it believes every sourceid has an com.apple prefix and hard code it. so i modify it (copy from https://github.com/minoki/InputSourceSelector, change api, which earlier and better)