insomnia

A frontend for the hii IRC client

git clone https://git.8pit.net/insomnia.git

 1#!/bin/sh
 2set -e
 3
 4outfp="${INSOMNIA_DIR}/out"
 5[ -e "${outfp}" ] || touch "${outfp}"
 6
 7# Set tmux pane-title to topic
 8printf '\033]2;%s\033\\' "$(insomnia-topic)"
 9
10# Only highlight mentions in channels
11[ -S "${INSOMNIA_DIR}/usr" ] && ischan=1
12
13tail -n 128 -f "${outfp}" | \
14	insomnia-track-topic | \
15	insomnia-color -e ${ischan:+-m} | \
16	insomnia-strip-bell | \
17	insomnia-strftime