Merge pull request #1 from uladar/normalize_keyboard_layout_name

Get rid of double quotes, dots in layout name
This commit is contained in:
Sardorbek Imomaliev 2021-12-07 12:53:45 +07:00 committed by GitHub
commit f1f0507333
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
#!/bin/bash
set -euo pipefail
defaults read ~/Library/Preferences/com.apple.HIToolbox.plist AppleSelectedInputSources | grep "KeyboardLayout Name" | cut -f 2 -d "=" | tr -d ' ;'
defaults read ~/Library/Preferences/com.apple.HIToolbox.plist AppleSelectedInputSources | grep "KeyboardLayout Name" | cut -f 2 -d "=" | tr -d ' ;."'