#!/bin/sh while true do sleep 600 X=`battery-status | awk '{print $4}'` if [ ${#X} -lt 5 ] && [ "$X" != "Charging" ] then play-sound /usr/local/kde/share/sounds/KDE_Notify.wav kdialog --title "Battery Status" --msgbox ". . . . . . . . . $X . . . . . . . . ." fi done