💾 Archived View for beta.lyk.so › systems › gemini › mozz-chat captured on 2023-06-14 at 14:05:37. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-04-19)

-=-=-=-=-=-=-

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