diff --git a/gistfile1.txt b/gistfile1.txt new file mode 100644 index 0000000..168a4ce --- /dev/null +++ b/gistfile1.txt @@ -0,0 +1,63 @@ +begin + button = KEY_5 + prog = irexec + config = /home/balkian/octo.sh home + repeat = 0 + delay = 3 +end +begin + button = KEY_1 + prog = irexec + config = /home/balkian/octo.sh move -10 10 0 + repeat = 0 + delay = 3 +end +begin + button = KEY_2 + prog = irexec + config = /home/balkian/octo.sh move 0 10 0 + repeat = 0 + delay = 3 +end +begin + button = KEY_3 + prog = irexec + config = /home/balkian/octo.sh move 10 10 0 + repeat = 0 + delay = 3 +end +begin + button = KEY_4 + prog = irexec + config = /home/balkian/octo.sh move -10 0 0 + repeat = 0 + delay = 3 +end +begin + button = KEY_6 + prog = irexec + config = /home/balkian/octo.sh move 10 0 0 + repeat = 0 + delay = 3 +end +begin + button = KEY_7 + prog = irexec + config = /home/balkian/octo.sh move -10 -10 0 + repeat = 0 + delay = 3 +end +begin + button = KEY_8 + prog = irexec + config = /home/balkian/octo.sh move 0 -10 0 + repeat = 0 + delay = 3 +end +begin + button = KEY_9 + prog = irexec + config = /home/balkian/octo.sh move 10 -10 0 + repeat = 0 + delay = 3 +end \ No newline at end of file diff --git a/octo.sh b/octo.sh index b31c239..357faaa 100644 --- a/octo.sh +++ b/octo.sh @@ -1,4 +1,5 @@ #!/bin/bash +echo $(date) - "$@" >> /tmp/octo-log CONF_FILE=$HOME/.octo.conf if [ ! -f "$CONF_FILE" ]; then @@ -25,5 +26,8 @@ case $1 in ;; home) send_octo '{ "command": "home", "axes": ["x", "y", "z"] }' -;; + ;; + nothing) + echo "nothing $(date)" >> /tmp/prueba + ;; esac \ No newline at end of file