mirror of
https://github.com/balkian/gists.git
synced 2025-08-23 15:12:21 +00:00
This commit is contained in:
committed by
GitHub
parent
9967ab2b24
commit
3755507158
63
gistfile1.txt
Normal file
63
gistfile1.txt
Normal 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
|
6
octo.sh
6
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
|
Reference in New Issue
Block a user