This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
if __name__ == "__main__": | |
parser = argparse.ArgumentParser() | |
parser.add_argument("--name", help="Any name", default="inconnu") | |
parser.add_argument("action", help="Action to execute") | |
args = parser.parse_args() | |
if args.action == "hello": |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/udev/rules.d/00-keyboard.rules | |
ACTION=="add", ATTR{name}=="Bastard Keyboards Charybdis Nano", ATTR{phys}=="*/input0", OWNER="sapristi", RUN+="/usr/local/bin/usb-keyboard-udev Charybdis" | |
NOTE: | |
on ubunut, use ACTION=="bind", otherwise device may not be present !! |