about summary refs log tree commit diff stats
path: root/README
blob: b4fde501384219f90bccb506287dbf4dfb7b8d68 (plain) (blame)
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.
pan class="sb">`)) case $1 in start) /sbin/ip link add name ${DEV} type bridge /sbin/ip addr add ${ADDR}/${MASK} dev ${DEV} broadcast + /sbin/ip link set dev ${DEV} up /bin/sleep 0.2s /sbin/ip link set dev ${PHY} down /bin/sleep 0.1s /sbin/ip route flush dev ${PHY} /sbin/ip addr flush dev ${PHY} /sbin/ip link set dev ${PHY} up /bin/sleep 0.2s /sbin/ip link set dev ${PHY} master ${DEV} #/sbin/ip route add default via ${GW} for i in `/usr/bin/seq $NTAPS` do TAP="tap$i" echo "Setting up ${TAP} tap interface." /sbin/ip tuntap add ${TAP} mode tap group kvm /sbin/ip link set ${TAP} up /bin/sleep 0.2s /sbin/ip link set ${TAP} master ${DEV} done exit 0 ;; stop) for i in `/usr/bin/seq $NTAPS` do TAP="tap$i" echo "Deleting ${TAP} tap interface." /sbin/ip link del ${TAP} done /sbin/ip link set dev ${DEV} down /sbin/ip route flush dev ${DEV} /sbin/ip link del ${DEV} exit 0 ;; restart) $0 stop $0 start ;; *) echo "Usage: $0 [start|stop|restart]" ;; esac # End of file