1
0
mirror of https://github.com/balkian/gists.git synced 2024-11-21 09:12:29 +00:00
This commit is contained in:
J. Fernando Sánchez 2016-12-28 02:36:51 +01:00 committed by GitHub
parent 9967ab2b24
commit 3755507158
2 changed files with 68 additions and 1 deletions

63
gistfile1.txt Normal file
View File

@ -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

View File

@ -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