Saturday, September 02, 2006

A script to assign a fortune epigram to kopete nick..


#!/bin/bash
foo=`fortune -s -n 50 |tr -d "\b\n\r\t\v[:cntrl:][:punct:]"`
dcop kopete default setGlobalNickname "`echo $foo`"
`Xdialog --info "$foo" 350x100 2000`

using /exec in kopete

No comments: