Skip to content

Conni2461/dwm

Repository files navigation

DWM fork - 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 xsetroot -name "`date` `uptime | sed 's/.*,//'`"
do
	sleep 1
done &
exec dwm

Configuration

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

Applied Patches

  • Alpha: Allow dwm to have translucent bars, while keeping all the text on it opaque
  • Autostart: This patch will make dwm run "~/.config/dwm/autostart_blocking.sh" and "~/.config/dwm/autostart.sh &" before entering the handler loop. One or both of these files can be ommited. Be aware that dwm will not startup as long as autostart_blocking.sh is running and will stay completely unresponsive.
  • Ru_gaps: Added gaps to dwm and removes gaps and borders when in monocle mode. Change gap size in config.h
  • Statuspadding: This makes the amount of horizontal and vertical padding in the status bar into configurable options.
  • barpadding: This patch adds variables for verticle and horizontal space between the statusbar and the edge of the screen.
  • Rotatestack: Stack rotation moves a client from the bottom to the top of the stack (or the other way round). This effectively rotates the clients by one position clockwise (or CCW, respectively).
  • Attachaside: Make new clients get attached and focused in the stacking area instead of always becoming the new master.
  • Cyclelayouts: Cycles through all avaiable layouts using MOD-CTRL-, and MOD-CTRL-.
  • center: Ability to center floating windows
  • centeredwindowname: Centered window names
  • dwmc: Simple dwmc client using a fork of fsignal to communicate with dwm.
  • togglefullscreen
  • statusallmons
  • pertag
  • swallow

Added layouts