Skip to content

Instantly share code, notes, and snippets.

@rixx rixx/switch
Created Jan 9, 2014

What would you like to do?
#!/usr/bin/env python
import os
import subprocess
def switch():
if "nodeadkeys" in subprocess.check_output(["setxkbmap", "-query"]):
os.system("setxkbmap de neo -option")
os.system("setxkbmap de nodeadkeys -option")
if __name__ == "__main__":
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.