insomnia

A frontend for the hii IRC client

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

 1#!/usr/bin/awk -f
 2
 3/^[0-9]+ \*\*\* .+ has set the topic to: .*$/ {
 4	# XXX: The code here potentially reformats the topic
 5	topic = $9
 6	for (i = 10; i <= NF; i++)
 7		topic = topic " " $i
 8
 9	# Append escape sequence for setting tmux pane title.
10	$0 = $0 sprintf("\033]2;%s\033\\", topic)
11}
12
13{
14	print
15	fflush()
16}