Re: conditional position/geometry?

Ken Poulton <[email protected]>
Newsgroups gmane.mail.exmh.user
Message-ID <[email protected]>
My exmh startup script just deletes geometry and font info from 
~/.exmh/exmh-defaults before startup.  I load these with xrdb(1)
using resolution conditionals and then call exmh.

Ken Poulton


-----------------------------------
#! /bin/ksh

# Get rid of geoemtry and font stuff
if grep geometry ~/.exmh/exmh-defaults >/dev/null ; then
    mv ~/.exmh/exmh-defaults ~/.exmh/exmh-defaults.old
    egrep -v 'geometry|^\*.*font:' ~/.exmh/exmh-defaults.old >~/.exmh/exmh-defaults
fi

xrdb -merge ~/Xdefaults/exmh

exmh -display $DISPLAY &


-------------------------------------------------- ~/Xdefaults/exmh:

#if HEIGHT>=1200
!!! 3200x1200 (calvin) or 1600x1200 (zonker)
  Exmh*font:    -adobe-helvetica-bold-r-normal--17-120-100-100-p-92-iso8859-1
  Exmh*fl_font: -adobe-helvetica-bold-r-normal--17-120-100-100-p-92-iso8859-1
  Exmh*seqWinFont:      9x15
#   if WIDTH>=3200
!!! Single Logical Screen 3200x1200:
        exmh.geometry:     854x1101-1685+13
        exmh #2.geometry:     854x1101-1740+8
        exmh #3.geometry:     854x1101-1840+3
#   else
!!! Zonker 1600x1200:
        exmh.geometry:     854x1101-85+13
        exmh #2.geometry:     854x1101-140+8
        exmh #3.geometry:     854x1101-240+3
#   endif
#elif HEIGHT>=1050
!!! Hobbes 1450x1050:
  Exmh*font:    -adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1
  Exmh*fl_font: -adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1
  Exmh*seqWinFont:      8x13
  exmh.geometry:        700x915-85+8
  exmh #2.geometry:        700x915+40+8
#else
!! Omnibook:
  Exmh*font:    -adobe-helvetica-bold-r-normal--12-120-75-75-p-70-iso8859-1
  Exmh*fl_font: -adobe-helvetica-bold-r-normal--12-120-75-75-p-70-iso8859-1
  Exmh*seqWinFont:      8x13
  exmh.geometry:     591x701-85+8
  exmh #2.geometry:     591x701+40+8
#endif
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.