hysteria

ii wrapper script
git clone git://git.2f30.org/hysteria
Log | Files | Refs | README | LICENSE

commit 40ab3bf551a6c828b5553f18ed7bef60a2383f65
parent ea8b6791b4406cf0e89c0ed15c54b091b194056a
Author: sin <sin@2f30.org>
Date:   Fri,  9 May 2014 10:41:42 +0100

Fix looping issue

Diffstat:
MREADME | 11++++++-----
Mconnectserver | 2+-
Dhighlight | 66------------------------------------------------------------------
Mmonitor | 2+-
4 files changed, 8 insertions(+), 73 deletions(-)

diff --git a/README b/README @@ -1,11 +1,12 @@ -Edit config according to your needs. Modify the highlight -script as well and set your nickname there so it gets highlighted -properly. Then start ./hysteria. +WTF? +==== +Edit config according to your needs. Edit highlight.c with +your nick information and compile it with cc -o highlight highlight.c +Then start ./hysteria. KNOWN ISSUES AND WORKAROUNDS ----------------------------- - +============================ Tmux input bar resize --------------------- diff --git a/connectserver b/connectserver @@ -17,5 +17,5 @@ fi host=$(echo $1 | awk -F: '{print $1}') port=$(echo $1 | awk -F: '{print $2}') tmux new-window "ii -i irc -s $host -p $port -n $nick -f $fullname" -tmux rename-window "ii@$host" +tmux rename-window "$host" ./waitfile "irc/$host/out" diff --git a/highlight b/highlight @@ -1,66 +0,0 @@ -#!/usr/bin/perl -# -# Taken from: https://github.com/berkoz/hiii - -use v5.10; -use strict; -use warnings; - -my %config = ( - # You can specify multiple nicknames like, 'berk|bozbalci' - - 'nick' => 'your_nickname', - 'color_nicks' => 'light_green', - 'color_own_nick' => 'light_red', - 'color_url' => 'light_blue', - 'color_actions' => 'magenta', - 'color_server' => 'black' -); - -my %color = ( - 'black' => "", - 'red' => "", - 'green' => "", - 'yellow' => "", - 'blue' => "", - 'magenta' => "", - 'cyan' => "", - 'white' => "", - 'light_black' => "", - 'light_red' => "", - 'light_green' => "", - 'light_yellow' => "", - 'light_blue' => "", - 'light_magenta' => "", - 'light_cyan' => "", - 'light_white' => "", - 'reset' => "" -); - -my $timestamp = "[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}"; -my $url = "(((https?|ftp)|mailto):(//)?[^ <>\"[:blank:]]*|(www|ftp)[0-9]?\.[-a-z0-9.]+)"; -my $nick = "<(.*?)>"; -my $action = "ACTION (.*)?"; -my $useless = "^-!- (.*)"; - -while (<>) { - # Remove the huge timestamp from the line's beginning - s/^$timestamp //; - - # Highlight nicknames, remove <> around them - s/^$nick/$color{$config{'color_nicks'}}$1$color{'reset'} /; - - # Highlight me - s/($config{'nick'})/$color{$config{'color_own_nick'}}$1$color{'reset'}/; - - # Highlight URLs - s/$url/$color{$config{'color_url'}}$1$color{'reset'}/; - - # Highlight /me actions - s/$action/$color{$config{'color_actions'}}* $1 *$color{'reset'}/; - - # Highlight "has joined", "changed mode", etc. - s/^$useless/$color{$config{'color_server'}}$1$color{'reset'}/; - - print; -} diff --git a/monitor b/monitor @@ -12,7 +12,7 @@ while :; do print $2}') found=0 for t in $(tmux list-windows -F '#W'); do - if test "$t" == "$title"; then + if test "$t" = "$title"; then found=1 break fi