Commit 8ee50e7
Changed files (1)
.wraith
scripts
.wraith/scripts/transcribe.sh
@@ -0,0 +1,16 @@
+#!/usr/bin/env zsh
+
+STATUS=$(curl -s http://localhost:9842/status)
+
+case "$STATUS" in
+ idle) ICON="" ;;
+ recording) ICON="๎
" ;;
+ processing) ICON=" " ;;
+ transcribing) ICON="๓ฐ" ;;
+ *) ICON="๏" ;;
+esac
+
+echo "{\"text\":\"$ICON\"}"
+
+
+