#!/bin/sh

frames=`ratpoison -c fdump | tr -d -C '(' | wc -c`

if [ $frames -eq 1 ];then
ratpoison -c "hideborder"
else
ratpoison -c "showborder"
fi