kb-layout-caps-led/draft/get-current-layout.sh

4 lines
173 B
Bash
Raw Normal View History

2019-05-04 02:34:41 +03:00
#!/bin/bash
gsettings get org.gnome.desktop.input-sources mru-sources | sed -e 's!\[!!g; s!\]!!g; s!), (!,!g; s!(!!; s!)!!g; s! !!g;' | awk -F, '{print $2}' | sed "s/'//g"