#!/usr/bin/env ruby while line = STDIN.gets if line.strip != "" `ratpoison -c "echo #{line.strip.split("\n").map {|i| i.strip }.reject {|i| i==''}.join('\n').gsub(/^notify-send : /, '')}"` end end