about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-02-19 13:17:49 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-02-19 13:17:49 +0100
commit5d9146ff372ae0c5196e290fb2c1f828d4137e20 (patch)
tree00a169f03b35cf5a62c2e6d765a13c6b12fc74b2
parent5cc27f1b3c61df4f048cdac9e0feb31a2dd80c63 (diff)
downloaddwm-5d9146ff372ae0c5196e290fb2c1f828d4137e20.tar.gz
some more refactoring
-rw-r--r--main.c4
-rw-r--r--tile.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/main.c b/main.c
index bd19e49..20450db 100644
--- a/main.c
+++ b/main.c
@@ -19,7 +19,7 @@
 
 char stext[256];
 int bh, bmw, screen, sx, sy, sw, sh, wax, way, waw, wah;
-unsigned int master, nmaster, ntags, numlockmask;
+unsigned int ntags, numlockmask;
 Atom wmatom[WMLast], netatom[NetLast];
 Bool running = True;
 Bool *seltag;
@@ -133,8 +133,6 @@ setup(void) {
 	sx = sy = 0;
 	sw = DisplayWidth(dpy, screen);
 	sh = DisplayHeight(dpy, screen);
-	master = MASTER;
-	nmaster = NMASTER;
 	bmw = textw(TILESYMBOL) > textw(FLOATSYMBOL) ? textw(TILESYMBOL) : textw(FLOATSYMBOL);
 	/* bar */
 	dc.h = bh = dc.font.height + 2;
diff --git a/tile.c b/tile.c
index a9bc0f5..fe25943 100644
--- a/tile.c
+++ b/tile.c
@@ -3,15 +3,17 @@
  */
 #include "dwm.h"
 
+unsigned int master = MASTER;
+unsigned int nmaster = NMASTER;
+
 /* static */
 
 static void
 togglemax(Client *c) {
 	XEvent ev;
-		
+
 	if(c->isfixed)
 		return;
-
 	if((c->ismax = !c->ismax)) {
 		c->rx = c->x;
 		c->ry = c->y;
mii.de> 2006-07-13 09:32:22 +0200 added logo+description' href='/acidbong/suckless/dwm/commit/README?h=5.4.1&id=650a1fb4e1a798aca48a53739f5bb2649191bc1c'>650a1fb ^
1076f2b
650a1fb ^
1076f2b
650a1fb ^
1076f2b

650a1fb ^
1076f2b
eff4478 ^
1076f2b
7b5638f ^

98c6a92 ^
98c6a92 ^

02cea3b ^
7b5638f ^
2b66f7a ^
98c6a92 ^
7b5638f ^
1076f2b

dc5c070 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
                            
                            
                                                                  

 

            
                                                     



            

                                                               
 
                                                                   




                      
           
           
                                                                  
 
            
 
                                                             

                                                        
                              
 
                                                        
 

                                                                
 

              
                                            
               
              
 
 

             

                                                              
dwm - dynamic window manager
============================
dwm is an extremely fast, small, and dynamic window manager for X.


Requirements
------------
In order to build dwm you need the Xlib header files.


Installation
------------
Edit config.mk to match your local setup (dwm is installed into
the /usr/local namespace by default).

Afterwards enter the following command to build and install dwm (if
necessary as root):

    make clean install


Running dwm
-----------
Add the following line to your .xinitrc to start dwm using startx:

    exec dwm

In order to connect dwm to a specific display, make sure that
the DISPLAY environment variable is set correctly, e.g.:

    DISPLAY=foo.bar:1 exec dwm

(This will start dwm on display :1 of the host foo.bar.)

In order to display status info in the bar, you can do something
like this in your .xinitrc:

    while true
    do
        echo `date` `uptime | sed 's/.*,//'`
        sleep 1
    done | dwm


Configuration
-------------
The configuration of dwm is done by creating a custom config.h
and (re)compiling the source code.