-- Leo's gemini proxy
-- Connecting to lyk.so:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini;
Updated 2022-02-07
Mozz hosts a Gemini-based chat room. I threw together a few scripts to make using it comfortable in my tiling window manager. I run notify.sh in a small window alongside another window runnign stream.sh, and I run submit.sh in a window that runs along the bottom of the screen. This gives me a pretty traditional chat experience.
These scripts are all pretty trivial (it took longer to document and release them than it did to write them in the first place), but they make for a nice experience.
#!/bin/sh gemget -o - gemini://chat.mozz.us/stream | while read line; do msg="$(echo "$line" | tail -c+24)" notify-send "$msg" done
#!/bin/sh gemget -o - gemini://chat.mozz.us/stream
#!/bin/sh clear printf '> ' while read line; do gemget \ -q \ --cert "$GEMINI_CERT" --key "$GEMINI_KEY" -o - \ "gemini://chat.mozz.us/submit?$(echo -n "$line" | perl -MURI::Escape -ne 'print uri_escape($_)')" clear printf '> ' done
-- Response ended
-- Page fetched on Sat May 18 17:08:49 2024