blob: 50058c83614618bd748cfee5b26e2be14f23ac6d (
plain)
1
2
3
4
5
6
7
8
9
10
|
from subprocess import run as _run
def run(command):
return _run(command.split(), capture_output=True).stdout.decode().strip()
def callback():
name = run('xkblayout-state print "%s"').strip('"')
return f"LNG: {name.upper()}"
|