#!/bin/bash

# get Licq window ID
PAGER_ID=`eesh -ewait "window_list" | grep ': 0' | awk '{print $1}'`
if [ -z "$PAGER_ID" ]; then
    echo "nao rolou"
    exit 1
fi

# unshade it if it is shaded
if `eesh -ewait "win_op $PAGER_ID shade ?" | grep yes > /dev/null`; then
    eesh -e "win_op $PAGER_ID shade off"; sleep 1; eesh -e "win_op $PAGER_ID shade on"
fi


