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

6 lines
229 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
gsettings get org.gnome.desktop.input-sources sources | sed -e 's!\[!!g; s!\]!!g; s!), (!,!g; s!(!!; s!)!!g; s! !!g;' | awk -F, '{print $2}' | sed "s/'//g"