Last active
April 6, 2022 16:32
-
-
Save McFrappe/e8365ec0148257b4af275fa3007509dc to your computer and use it in GitHub Desktop.
Script that fetches what keyboard layout is active in Mac OS (tested on Monterey)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
plutil -extract AppleSelectedInputSources xml1 -o - ~/Library/Preferences/com.apple.HIToolbox.plist | xmllint --xpath \"string(//dict[2]/string[2])\" - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment