#!/bin/bash # # Issues a screenpager command in "window" mode. # It is similar to screenpager-heads-up # whenever the on-screen display was recently visible. # Otherwise it differs by defaulting to the screen of the active window, # if there is one. # if /usr/bin/screenpager display off --duration=5 test; then # display off too long screen=`/usr/local/bin/cascade-pilot output screen` if [ -n "$screen" ]; then /usr/bin/screenpager --screen=$screen focus # make screen change persist /usr/bin/screenpager --display $@ else /usr/bin/screenpager display on # skip command, and turn display on fi else /usr/bin/screenpager --display $@ fi