mirror of
https://github.com/imomaliev/tmux-keyboard-layout.git
synced 2026-09-10 07:06:19 -04:00
For some layouts (U.S for example) keyboard name in double quotes. But for Russian, Portuguese - not.
5 lines
181 B
Bash
Executable file
5 lines
181 B
Bash
Executable file
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
defaults read ~/Library/Preferences/com.apple.HIToolbox.plist AppleSelectedInputSources | grep "KeyboardLayout Name" | cut -f 2 -d "=" | tr -d ' ;."'
|