DWM is an extremely fast, small, and dynamic window manager for X.
In orde to build dwm you need the Xlib header files.
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
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 xsetroot -name "`date` `uptime | sed 's/.*,//'`"
do
sleep 1
done &
exec dwm
The configuration of dwm is done by creating a custom config.h and (re)compiling the source code.
To add new shortcuts, you need to edit the file located in lib/commend.h, adding a constant string with the following constant:
...
static const char *Namecmd[] = {"command", NULL};
...
The command must be one of the reference shell, typically *bash or zsh*, so we can use all the programs that can be summoned from the terminal.
The library located in lib/keyWorld.h introduces the i3wm key nomenclature quickly and easily.
/* Video controls */
#define XF86WebCam 0x1008FF8F /* Launch web camera app. */
#define XF86SplitScreen 0x1008FF7D /* Split window or screen */
/* Audio controls */
#define XF86AudioMicMute 0x1008FFB2 /* Mute the Mic from the system */
#define XF86AudioLowerVolume 0x1008FF11 /* Volume control down */
#define XF86AudioMute 0x1008FF12 /* Mute sound from the system */
#define XF86AudioRaiseVolume 0x1008FF13 /* Volume control up */
/* Luminosità dello schermo */
#define XF86MonBrightnessUp 0x1008FF02 /* Monitor/panel brightness */
#define XF86MonBrightnessDown 0x1008FF03 /* Monitor/panel brightness */
#define XF86ScreenSaver 0x1008FF2D /* Invoke screensaver */
#define XF86Display 0x1008FF59
#define XF86AudioPlay 0x1008FF14
#define XF86AudioStop 0x1008FF15
#define XF86AudioPrev 0x1008FF16
#define XF86AudioNext 0x1008FF17
#define XF86AudioPause 0x1008FF31
#define XF86XAudioMedia 0x1008FF32 /* Launch media collection app */
Instead of,