#!/bin/bash

DEFAULT_NICK='parabola-user' # ASSERT: this is defined in ~/.purple/accounts.xml


nick=$(zenity --entry --width=320          \
              --title="Parabola IRC Login" \
              --text "Choose a nick-name:" \
              --entry-text=$DEFAULT_NICK   )
nick=${nick// /}
[ "$nick" ] || nick=$DEFAULT_NICK

sed -i "s|$DEFAULT_NICK|$nick|" ~/.purple/accounts.xml
pidgin &
