Skip to content

Instantly share code, notes, and snippets.

View rixx's full-sized avatar

Tobias Kunze rixx

View GitHub Profile
#!/usr/bin/env python
import os
import subprocess
def switch():
if "nodeadkeys" in subprocess.check_output(["setxkbmap", "-query"]):
os.system("setxkbmap de neo -option")
else:
os.system("setxkbmap de nodeadkeys -option")