Feature: window fences

samuel samuel.verstraete at gmail.com
Fri Oct 28 13:49:05 CEST 2022


I tried a couple of things, mostly based on your other PR about documenting
xfconf...
edited the .config/xfce4/xfconf/xfce-perchanel-xml/xfwm4.xml
tried adding the following section both under the original <property
name="general"... or directly under the <channel name="xfwm4"... neither
seemed to do anything for me:
(i tried adding fences as an 'array' or as 'empty' (empty was documented in
your PR, the code about fences said explicitly it needed to be an array,
tried both... no avail)

I'm quite interested in this feature, though i don't know if it needs to be
part of xfwm4

<property name="fences" type="array" />
<property name="one" type="array" />
<property name="title" type="string" value="first one"/>
<property name="geometry" type="string" value="=1000x1000+100+55"/>
<property name="background-color" type="string" value="rgba(155,50,50,0.3)"
/>
<property name="border-color" type="string" value="red"/>
<property name="auto-maximize" type="bool" value="true"/>
</property>
<property name="two" type="array">
<property name="title" type="string" value="second one"/>
<property name="geometry" type="string" value="=800x800+1400+50"/>
<property name="background-color" type="string" value="rgba(10,10,255,0.3)"
/>
<property name="border-color" type="string" value="blue"/>
<property name="auto-maximize" type="bool" value="true"/>
</property>
</property>

On Fri, Oct 28, 2022 at 12:17 PM samuel <samuel.verstraete at gmail.com> wrote:

> Enrico, you have an example on how i could set this up?
>
> On Wed, Oct 19, 2022 at 5:08 PM Enrico Weigelt, metux IT consult <
> lkml at metux.net> wrote:
>
>> Hello folks,
>>
>> I've like to announce another feature that I've implemented recently:
>>
>> https://gitlab.xfce.org/xfce/xfwm4/-/merge_requests/59
>>
>> Window fences:
>> ---------------
>>
>> * user can define "fences", regions on screen (via xfconf) where clients
>>    are maximized into (instead of whole monitor)
>> * fences optionally can be configured to auto-maximize the window if is
>>    moved in
>> * behavior outside any fences (or when no fence configured) remains
>>    unchanged
>> * current fence is communicated by window property
>> * clients can switch to another fence (or outside) updating the the
>>    window property
>> * initial fence can be configured by window policy
>>
>> Rationale: allows somewhat similar behavior like tiling, but with more
>> flexibility:
>>
>> * mixed w/ floating windows
>> * fence regions can defined arbitrarily and by fixed geometry
>> * easy to configure automatically w/o manual intervention (CASC, auto-
>>    provisioners, ...)
>> * clients can be put into certain regions (w/o extra client side
>>    support)
>> * via policies (see my previous mail), this can be defined via window
>>    class, title, window type, etc
>>
>> Further work (planned / WIP):
>>
>> * auto-provisioning of fences by monitor or split-monitor
>> * dynamic reconfiguration (eg. on monitor failure or replacement), incl.
>> * auto-repositioning (on fence reconfiguration)
>> * fence switch via window menu
>> * optional permanent border markings
>> * interactive configuration UI
>>
>> If you like it, feel free to leave your thumb up.
>>
>>
>> --mtx
>>
>> --
>> ---
>> Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert
>> werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren
>> GPG/PGP-Schlüssel zu.
>> ---
>> Enrico Weigelt, metux IT consult
>> Free software and Linux embedded engineering
>> info at metux.net -- +49-151-27565287
>> _______________________________________________
>> Xfce4-dev mailing list
>> Xfce4-dev at xfce.org
>> https://mail.xfce.org/mailman/listinfo/xfce4-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.xfce.org/pipermail/xfce4-dev/attachments/20221028/ed3d4044/attachment-0001.html>


More information about the Xfce4-dev mailing list