Mozz chat

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.

notify.sh:

#!/bin/sh

gemget -o - gemini://chat.mozz.us/stream | while read line; do
	msg="$(echo "$line" | tail -c+24)"
	notify-send "$msg"
done

stream.sh:

#!/bin/sh

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

submit.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

Relevant Links

Page Created:: 2022-02-07

Last Updated:: 2024-12-12

Last Reviewed:: 2024-12-12