10 lines
188 B
Text
10 lines
188 B
Text
|
#!/bin/sh
|
||
|
|
||
|
swaymsg -t get_inputs |
|
||
|
jq -r '..|
|
||
|
select(.type? == "keyboard")
|
||
|
.xkb_active_layout_name' |
|
||
|
head -n 1 |
|
||
|
sd '\b(..)[\w\s]*' '$1' |
|
||
|
sd '$' '\n'
|