set activeKbdLayout to my getActiveKeyboardLayout()
set plistPath to "~/Library/Preferences/com.apple.HIToolbox.plist"
do shell script "defaults read " & plistPath & " dummy"
tell application "System Events"
repeat with pli in property list items of ¬
property list item "AppleSelectedInputSources" of ¬
property list file plistPath
return value of property list item "KeyboardLayout Name" of pli
if activeKbdLayout is "Hebrew" then
else if activeKbdLayout is "ABC" then
-- set IconPath to ((path to desktop folder from user Sagi) & "KeyboardInputs:" & activeKbdLayout & ".png") as string
I liked your preset. Touch Bar is a thin strip and there are not much things one can do with it.Contextually dynamic set ups is one of the best ways to use it.
Your preset resembles my preset Ingo2 that I posted here. Feel free to take a look and grab any part.