xenocara/app/xlockmore/etc/xtermlock.sh

12 lines
377 B
Bash
Raw Normal View History

2006-11-26 04:07:42 -07:00
#!/bin/sh
# Runs xlock displaying to the current X terminal emulator window
# Works well in xterm, but not so well in terminal emulators like
# dtterm that have menu bars and other junk.
#
# All arguments are passed to xlock.
g=`stty -a |
sed -ne's/.* ypixels = \([^;]*\); xpixels = \([^;]*\).*/\2x\1/p'`
exec xlock -inwindow -parent $WINDOWID +install -geometry $g "$@"