wmii/wmiir

12 lines
198 B
Bash

#!/bin/sh
export IXP_ADDRESS="$WMII_ADDRESS"
if [ "$1" = -v ]; then
flag=-v; shift
fi
if [ "$1" = xwrite ]; then
file="$2"; shift 2
echo "$@" | ixpc $flag write $file
else
exec ixpc $flag $@
fi