[PATCH] Add consequence to move a client to a monitor

Thorsten Wißmann edu at thorsten-wissmann.de
Sat Mar 15 23:23:50 CET 2014


On Sat, Mar 15, 2014 at 12:01:23PM -0600, Wesley Merkel wrote:
> On Sat, Mar 15, 2014 at 02:48:38PM +0100, Thorsten Wißmann wrote:
> > I'm not quite sure why one needs that consequence, can you name one
> > application for it?
> 
> My original reason for the consequence was for use with the floatmon.sh
> script. I use a more convoluted version of the script where I have a
> specific floating tag for each of my normal tags, but the idea is the
> same. Now I can make dialog and splash windows always display on the
> floating monitor. However, I could see this being useful to anyone who
> likes certain windows to always be on a specific monitor.
> 
> On an unrelated note, I made an improvement to my patch that, I feel,
> better integrates with hlwm's existing behaviour.

Be aware that I won't change the behaviour of things after it has been
official for a long time (in case of a few days it's OK).


>  +monitor+::
>      moves the client to the tag on monitor 'VALUE'. If the tag consequence was
> -    also specified, move the client to that tag, then display that tag on
> -    monitor 'VALUE'. In the case where the tag consequence is also specified, if
> -    either of the tag or monitor values do not refer to an actual monitor or
> -    tag, hlwm will behave as if that consequence was not set.
> +    also specified, and switchtag is set for the client, move the client to that
> +    tag, then display that tag on monitor 'VALUE'. If the tag consequence was
> +    specified, but switchtag was not, ignore this consequence.

Sounds OK, but this is weird:

> +    In the case where
> +    the tag consequence is also specified, if either of the tag or monitor
> +    values do not refer to an actual monitor or tag, hlwm will behave as if that
> +    consequence was not set.

I did not get what you want to say after reading it multiple times.
Please rephrase that. Do you want to say something like this?

    If an invalid monitor description is given, nothing is done. If the
    tag does not exist, then nothing is done.

Regards,
Thorsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 230 bytes
Desc: not available
URL: <https://listi.jpberlin.de/pipermail/hlwm/attachments/20140315/28cb28c1/attachment.sig>


More information about the hlwm mailing list