Update tmux and add local bins

This commit is contained in:
Hunter Haugen 2024-03-22 14:26:28 -07:00
parent e58102cf1a
commit f88286d60b
Signed by: hunner
GPG key ID: EF99694AA599DDAD
13 changed files with 184 additions and 3 deletions

19
local/bin/talon_pedal.sh Executable file
View file

@ -0,0 +1,19 @@
#!/bin/bash
pedal_down="enable"
pedal_up="disable"
if [ xsleep = x"$1" ]; then
pedal_down="disable"
pedal_up="enable"
fi
line=""
aseqdump -p "USB Uno MIDI Interface" | while true ; do
read -r line
case $(echo "$line" | tr -s " " | cut -d " " -f 4-8) in
"0, controller 67, value 0") echo "actions.speech.${pedal_up}()" | ~/.talon/bin/repl ;;
"0, controller 67, value 127") echo "actions.speech.${pedal_down}()" | ~/.talon/bin/repl ;;
*) echo "other stuff: $(echo "$line" | tr -s " " | cut -d " " -f 4-8)" ;;
esac
done