#!/bin/sh ## use the windows on the desktop as screensavers by moving them randomly . /tmp/wms_var FLAG=$1 # focused window. FW=$(pfw) # screen width. SW=$(wattr w $(lsw -r)) # screen height. SH=$(wattr h $(lsw -r)) # windows width = 80% of the screen. WW=$((SW * 80 / 100)) # windows height = 80% of the screen. WH=$((SH * 80 / 100)) # max X coordinate. MAXX=$((SW - WW)) # max Y coordinate. MAXY=$((SH - WH)) # refresh freq. FREQ=20 usage() { cat<