xref: /original-bsd/usr.bin/window/windowrc (revision c3e32dec)
1# Copyright (c) 1983, 1993
2#	The Regents of the University of California.  All rights reserved.
3#
4# %sccs.include.redist.sh%
5#
6#	@(#)windowrc	8.1 (Berkeley) 06/06/93
7#
8
9# Configuration file example for window manager
10# To be installed in ~/.windowrc
11#
12# Create two unequal sized windows of full screen width,
13# and set up some useful aliases.
14#
15
16#
17# Optional settings
18#
19# terse on			# set terse mode
20# escape "^A"			# set escape character
21# nline 100			# set default buffer size
22				# initially, this is 48
23
24#
25# Make two windows
26# The bottom one is MIN(24, total lines * 3 / 4) lines
27# The top one is the rest of the screen.
28#
29three_fourth = $nrow - ((_ = $nrow * 3 / 4) > 24 ? 24 : $_)
30unset _
31window row = 0, nrow = $three_fourth - 1, label = "Top"
32window row = $three_fourth, label = "Local"
33
34#
35# Useful aliases
36#
37#
38# Standard window
39#
40alias std "window r = $three_fourth, l = $?1 ? $1 : ''"
41#
42# Sysline, add your own options
43#
44alias sysline "_ = select();" \
45	"foreground window(r = 0, nr = 1, nc = $ncol + 1, nl = 0," \
46		"l = sysline, pty = no, frame = no, sh = sysline \\-w), 1;" \
47	"select $_; unset _"
48#
49# Rlogin
50#
51alias rlogin "window r = $three_fourth, l = $1, pty = no, mapnl = no," \
52	"sh = sh \\-c 'echo $TERMCAP | rsh ' + $1 + ' \\'cat > .TERMCAP\\' ;" \
53	"exec rlogin ' + $1"
54alias rl rlogin \$1
55#
56# Two equal windows
57#
58alias two "window r = 1, nr = $nrow / 2 - 1, l = top;" \
59	"window r = $nrow / 2 + 1, l = bottom"
60