You are not logged in.

#1 2009-12-15 20:48:56

btwxt
Member
Registered: 2009-12-14
Posts: 34

dwm - root window on right side [solved]

is there a way to flip the root and stack sides in dwm?  ie, the master window will automatically open on the right side, and anything after will stack on the left.

if this is possible, dwm4lyfe

thanks!

Last edited by btwxt (2009-12-18 06:29:44)

Offline

#2 2009-12-15 20:58:01

HashBox
Member
Registered: 2009-01-22
Posts: 271

Re: dwm - root window on right side [solved]

I don't think there is a setting for it, but if you're comfortable with C (or even not so much), it shouldn't be too hard to find how the windows are getting placed and swap them around

Offline

#3 2009-12-15 21:59:21

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: dwm - root window on right side [solved]

One of the layouts in nmaster does this - you could probably set it as the default...

/edit Yes: you just set ntile as the first entry in layouts and it stacks to the left of the screen...

Last edited by jasonwryan (2009-12-15 22:28:23)


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2009-12-16 03:45:36

btwxt
Member
Registered: 2009-12-14
Posts: 34

Re: dwm - root window on right side [solved]

jasonwryan:  thanks for the heads up on nmaster!

while it's not exactly what i wanted, it'll get the job done until I can look at the source like HashBox mentioned a little closer. 

In this current configuration, upon opening a new terminal the screen will then split into 4 even boxes instead of stacking 3 on the left.  A quick and dirty fix for sure, but a nice one. 

here is a picture of nmaster in use:

http://i.imgur.com/SoDXD.jpg

PS, can i upload images directly to the board with the [img] tag?

Last edited by btwxt (2009-12-16 03:46:08)

Offline

#5 2009-12-16 04:27:29

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: dwm - root window on right side [solved]

btwxt wrote:

In this current configuration, upon opening a new terminal the screen will then split into 4 even boxes instead of stacking 3 on the left. ...

Glad it (sort of) helped. In my install, opening a fourth client in the tag stacks it with the others (ie., on the left of the screen). It only divides the screen into four quadrants if I change the incmaster value...

Not sure about the image question. You could always give it a try and see.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2009-12-16 05:39:33

btwxt
Member
Registered: 2009-12-14
Posts: 34

Re: dwm - root window on right side [solved]

ah well i guess if you set static const int nmaster=3 or more it could get the same effect.  by default it's at 2.  i'm gonna change it to 4 so it won't start stacking on the 'stack' (right) side til 4 clients fill the master window.

on another note:  is it possible to get auto-transparency to work in dwm?  i've fiddled with devilspie a little (to no avail) in an attempt to get it to work.  i'd rather not have to use gnome-terminal as a default terminal, even though it has easy auto-transparency.

Offline

#7 2009-12-16 05:42:05

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: dwm - root window on right side [solved]

It works fine for me set at 2 - but I haven't played with it as it suits my needs.

I use Urxvt - that gives me transparency. I find it works brilliantly with dwm.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2009-12-16 05:55:44

btwxt
Member
Registered: 2009-12-14
Posts: 34

Re: dwm - root window on right side [solved]

i should just make the switch to urxvt - it's been on the list of things to do.  thanks for your help smile

Offline

#9 2009-12-16 06:05:18

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: dwm - root window on right side [solved]

No problem. Do you want to mark the thread 'solved'?

Cheers


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#10 2009-12-16 06:10:11

btwxt
Member
Registered: 2009-12-14
Posts: 34

Re: dwm - root window on right side [solved]

yes i'd say i found a reasonable workaround with nmaster.  consider it solved smile

Offline

#11 2023-01-22 21:19:05

es20641
Member
Registered: 2011-11-29
Posts: 38
Website

Re: dwm - root window on right side [solved]

I know this is old, but I found an actual solution in the suckless patches
https://dwm.suckless.org/patches/leftst … k-6.2.diff

Offline

#12 2023-01-22 22:23:11

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,793

Re: dwm - root window on right side [solved]

I have been seeing reports of this being a old topic, but I do believe this is the rare case where this answer is relevant, albeit 13 years later.

I will, however, take this opportunity to close this thread.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB