On Fri, 5 Feb 2016 23:20:54 -0800
Michelle Kountz <[email protected]> wrote:
> Hello!
>
> I love windowmaker, but I have just one problem with it.There are
> certain programs- pcmanfm, vlc, iceweasel, and deadbeef, that I like
> open to a certain size and place on my screen. Depending on the file,
> these open to any shape and size imaginable, and resizing them
> constantly is annoying. I was told xwininfo would give me information
> on my windows, which can be used to place the programs where I want.
> I just can't seem to figure out what files to change to accomplish
> this.
I use wmctrl for this:
# apt-get install wmctrl
$ cat ~/GNUstep/geometry/evince.conf
WAIT=0.5
HPOS=10
VPOS=10
HSIZE=1280
VSIZE=720
And a small script:
###################################################################
#!/bin/dash
BIN=evince
if test -f ~/GNUstep/geometry/${BIN}.conf ; then
. ~/GNUstep/geometry/${BIN}.conf
else
echo "\n[ERROR] cannot find \"~/GNUstep/geometry/${BIN}.conf\"\n"
exit 1
fi
if test -z "$1" ; then
${BIN} 2>/dev/null &
else
${BIN} "$1" 2>/dev/null &
fi
PID=$!
sleep ${WAIT}
WNAME=$(wmctrl -lp | awk '/'${PID}'/ {print $1}')
wmctrl -ir ${WNAME} -e "0,${HPOS},${VPOS},${HSIZE},${VSIZE}"
###################################################################
Maybe this will give you some inspiration :)
HTH,
R.
--
richard lucassen
http://contact.xaq.nl/
--
To unsubscribe, send mail to [email protected].