-- Leo's gemini proxy

-- Connecting to lyk.so:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini;

gemini / mozz-chat


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

notify.sh


#!/bin/sh

gemget -o - gemini://chat.mozz.us/stream

stream.sh


#!/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

submit.sh


relevant links


Mozz's Gemini chat

gemget

-- Response ended

-- Page fetched on Sat May 18 17:08:49 2024