summaryrefslogtreecommitdiff
path: root/src/window
blob: 563b030e364176f732c46d539e7a3fc5a3b9b6fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh
#
#  Window manipulation.
#
if [ "$#" -eq 0 ] ; then
	echo usage: `basename $0` 'task [...]'
	echo tasks:
	echo "	1	deiconify"
	echo "	2	iconify"
	echo "	3 x y	move window to (x, y) pixels"
	echo "	4 h w	resize window to (w, h) pixels"
	echo "	5	raise"
	echo "	6	lower"
	echo "	7	refresh"
	echo "	8 h w	resize text area to (w, h) cells"
	echo "	9 0	unmaximize"
	echo "	9 1	maximize"
	exit
fi
args=
for arg in $@ ; do
	if [ "$args" = "" ] ; then
		args="$arg"
	else
		args="$args;$arg"
	fi
done
printf "["${args}t