#!/bin/bash # # Same as screenpager-heads-up, # but the trailing display command is issued separately. # This gives the window manager time to finish its work # before the results are displayed. # if /usr/bin/screenpager display off --duration=20 test; then : # display off too long # skip command, and turn display on else /usr/bin/screenpager $@ # issue command # sleep 1 # give it some extra time to execute fi /usr/bin/screenpager display on