1

I need to start X applications with specific width an height. I didn't find any good solution except using xdotool xdotool - fake keyboard/mouse input, window management, and more.

Could I just append some arguments after application start command to archive this?

Lorenz Keel
  • 8,905
Hunter Han
  • 11
  • 3
  • 1
    In general, no. For a particular application, maybe. Consult its manual page or other documentation. – fkraiem May 24 '16 at 02:50
  • 1
    Many X applications will accept a -geometry argument e.g. xclock -geometry 48x48: see the GEOMETRY SPECIFICATIONS section of the X manual page (man X or man 7 X) – steeldriver May 24 '16 at 03:11
  • Right,I used to think the -display is available on all x applications, so there should be some optional arguments to specific width and height for all x applications, now I know this option is -geometry form steeldriver's answer. But sadly, whether a specific application supports this option is uncertain, it depends the developer of application. So I give up this attempt, because it is't available at every time. Thank you very much for your help @fkraiem – Hunter Han May 24 '16 at 03:51
  • Which window manager do you use? At least with openbox, it maybe possible to specify both dimensions and position. – DK Bose May 24 '16 at 04:26
  • 1

0 Answers0