Sv: is there a user mailing list/group for StumpWM?

Szos <[email protected]> Fri, 12 Aug 2022 19:45:33 +0000 (UTC)
Newsgroups gmane.comp.window-managers.stumpwm.devel
Message-ID <[email protected]>
Dynamic-group-master-layout is an accessor, so you need to pass it the grou=
p as an argument, eg (setf (dynamic-group-master-layout (current-group)) :r=
ight) in a dynamic group. Im not sure if this is exported so you may need t=
he package as a part of the symbol.

After a quick test it seems that the strings Left, Right, Top, and Bottom a=
re what the commands i named accept. Eg (in the : prompt) change-layout Rig=
ht. You can also just enter change-layout and then press tab to cycle throu=
gh the available arguments.


> dynamic-group-head-layout is not known, either as a method or a
> variable.=C2=A0 Again, I'm probably missing something trivial...


Are you in the stumpwm package or the stumpwm-user package? This is a gener=
ic function defined in the stumpwm package.

If you want to peruse the source you can see the file dynamic-group.lisp. t=
he commands begin at line 1050, and the whole implementation of dynamic gro=
ups exists (almost entirely) within this file.

I hope that clears things up a little, dont hesitate to ask more questions.

--sz

12. aug. 2022 21:35:49 Eric S Fraga <[email protected]>:

> Hi Szos,
>=20
> thank you for the long response.=C2=A0 Unfortunately, it's not quite deta=
iled
> enough for me to actually figure out how to do what you suggest.
>=20
> On Friday, 12 Aug 2022 at 18:13, Szos wrote:
>> With regard to setting up the layout of windows in dynamic groups, you
>> can change that by setf-ing the dynamic-group-master-layout of the
>> dynamic group to one of :left :right :top or :bottom.
>=20
> So, I have tried (by eval-ing)
>=20
> (setf dynamic-group-master-layout :right)
>=20
> and nothing changes in terms of behaviour.=C2=A0 New windows appear on th=
e
> left.=C2=A0 I did create another dynamic group after that setting in case=
 it
> only applied to new groups.=C2=A0 I also tried :right in case I had thing=
s
> backward.
>=20
> I'm obviously missing something simple...
>=20
>> This can also be done by the command change-default-layout.
>=20
> If I try executing (in the : prompt)
>=20
> change-default-layout :right
>=20
> I get told that there is no such layout.=C2=A0 Save with change-layout.
>=20
>> If you want this to persist through every group and through restarts
>> you could define an after method for group-add-head which specializes
>> upon a dynamic group and a head, and checks which head it is and
>> changes the heads layout when appropriate using (setf
>> (dynamic-group-head-layout group head) :right).
>=20
> dynamic-group-head-layout is not known, either as a method or a
> variable.=C2=A0 Again, I'm probably missing something trivial...
>=20
>> I hope thats clear, i can provide more detailed explanation later if
>> you wish.
>=20
> Please do and thanks for your patience!
>=20
> eric
>=20
> PS -I will explore the source code some more in case that gives me
> pointers.
>=20
> PPS - for the record, I am running StumpWM from git up to date today.
>=20
> --=20
> Eric S Fraga via gnus (Emacs 29.0.50 2022-08-08) on Debian 11.3