From 4a93b046e954892edf3356bcd5745c612232fe15 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 12 Jul 2020 00:12:55 +0200 Subject: x11: add option to make window appear on a specific workspace Mess this into the --geometry option, because I like to be irresponsible. I considered adding a separate option, but at least this allows me to defer the question how the hell this should work as property (geometry simply and inherently does not). Tested on IceWM only. Option equality test and string output not tested. --- DOCS/man/options.rst | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'DOCS') diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index f554186f04..b85b67c991 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -2936,7 +2936,7 @@ Window (X11 only) Show the video window on all virtual desktops. -``--geometry=<[W[xH]][+-x+-y]>``, ``--geometry=`` +``--geometry=<[W[xH]][+-x+-y][/WS]>``, ``--geometry=`` Adjust the initial window position or size. ``W`` and ``H`` set the window size in pixels. ``x`` and ``y`` set the window position, measured in pixels from the top-left corner of the screen to the top-left corner of the image @@ -2945,7 +2945,9 @@ Window Positions are specified similar to the standard X11 ``--geometry`` option format, in which e.g. +10-50 means "place 10 pixels from the left border and 50 pixels from the lower border" and "--20+-10" means "place 20 pixels - beyond the right and 10 pixels beyond the top border". + beyond the right and 10 pixels beyond the top border". A trailing ``/`` + followed by an integer denotes on which workspace (virtual desktop) the + window should appear (X11 only). If an external window is specified using the ``--wid`` option, this option is ignored. @@ -2982,9 +2984,10 @@ Window Forces the window width and height to half the screen width and height. Will show black borders to compensate for the video aspect ratio (with most VOs and without ``--no-keepaspect``). - ``50%+10+10`` + ``50%+10+10/2`` Sets the window to half the screen widths, and positions it 10 - pixels below/left of the top left corner of the screen. + pixels below/left of the top left corner of the screen, on the + second workspace. See also ``--autofit`` and ``--autofit-larger`` for fitting the window into a given size without changing aspect ratio. -- cgit v1.2.3