dvtm

dvtm brings the concept of tiling window management, popularized by X11-window managers like dwm to the console. As a console window manager it tries to make it easy to work with multiple console based programs like vim, mutt, cmus or irssi.

News

Development

You can always fetch the current codebase from the git repository.

git clone git://repo.or.cz/dvtm.git

If you have comments, suggestions, ideas, a bug report, a patch or something else related to dvtm then write to the dwm maling list (for now) or contact me directly mat[at]brain-dump.org.

Installation

In order to use dvtm you will need a curses library, for example libncurses.

Download the latest version of dvtm and extract it. Edit config.mk to match your local setup (dvtm is installed into the /usr/local namespace by default). Customize config.h as you see fit, see the configuration section for further information.

If you are on a system with utf8 locales (if unsure check $LANG and the output of locale) you probably want dvtm to be linked against libncursesw so type make unicode otherwise plain make should suffice.

$EDITOR config.mk
$EDITOR config.h
make
# or on a utf8 aware system 
# make unicode
make install

You should now be able to start dvtm, redirect stderr to a file or /dev/null (just in case something goes wrong you will see it there).

./dvtm 2> log

Configuration

The configuration of dvtm is done by creating a custom config.h and (re)compiling the source code. See the default config.h as an example adapting it to your preference should be straightforward. You basically define a set of layouts and keys which dvtm will use. There are some pre defined macros to ease configuration.

Command line options

dvtm only contains 3 simple command line options.

#!/bin/sh

FIFO="/tmp/dvtm-status.$$"

[ -e "$FIFO" ] || mkfifo "$FIFO"
chmod 600 $FIFO

while true; do
	date +%H:%M
	sleep 60
done > $FIFO &

STATUS_PID=$!
./dvtm -s $FIFO 2> /dev/null
kill $STATUS_PID
rm $FIFO

Tips and Tricks

If you just want to be able to detach and later reattach dvtm sessions i would suggest to use dtach.

dtach -c /tmp/dvtm-session -r winch dvtm

If you additionaly want something similiar to workspaces try running multiple dvtm sessions in different screen windows.

Layouts

dvtm currently includes 4 standard layouts, below is a schema of each one. These layouts are mostly adapted from dwm (the grid layout is enhanced to always use the whole screen). Porting a layout from dwm should be relatively easy.


    +----------+----------+ +----------+----------+
    |          |          | |          |          | 
    |          |          | |          |          |
    |          |          | |          |          |
    |          |          | |          +----------+
    |          |          | |          |          |
    |          |          | |          |          |
    |          |          | |          |          |
    +---------------------+ +---------------------+
          2 windows               3 windows

    +----------+----------+ +----------+----------+
    |          |          | |          |          | 
    |          |          | |          +----------+
    |          +----------+ |          |          |
    |          |          | |          +----------+
    |          +----------+ |          |          |
    |          |          | |          +----------+
    |          |          | |          |          |
    +---------------------+ +---------------------+
          4 windows               5 windows
			

    +----------+----------+ +----------+----------+
    |                     | |                     | 
    |                     | |                     |
    |                     | |                     |
    +---------------------+ +---------------------+
    |                     | |          |          |
    |                     | |          |          |
    |                     | |          |          |
    +---------------------+ +---------------------+
          2 windows               3 windows

    +---------------------+ +---------------------+
    |                     | |                     | 
    |                     | |                     |
    |                     | |                     |
    +------+-------+------+ +----+-----+-----+----+
    |      |       |      | |    |     |     |    |
    |      |       |      | |    |     |     |    |
    |      |       |      | |    |     |     |    |
    +------+-------+------+ +----+-----+-----+----+
          4 windows               5 windows
			

    +----------+----------+ +----------+----------+
    |          |          | |          |          | 
    |          |          | |          |          |
    |          |          | |          |          |
    |          |          | +----------+----------+
    |          |          | |                     |
    |          |          | |                     |
    |          |          | |                     |
    +---------------------+ +---------------------+
          2 windows               3 windows

    +----------+----------+ +------+-------+------+
    |          |          | |      |       |      |
    |          |          | |      |       |      |
    |          |          | |      |       |      |
    +----------+----------+ +------+---+---+------+
    |          |          | |          |          |
    |          |          | |          |          |
    |          |          | |          |          |
    +---------------------+ +---------------------+
          4 windows               5 windows
		    

The fullscreen layout displays only the currently selected window.

Screenshots

Below are a few screenshots which show dvtm in action.

Links

Below are some links which are in one way or another related to dvtm.

License

dvtm reuses some code of dwm and is released under the same MIT/X11 license. madtty which is used for the terminal emulation is licensed under the GNU LGPL.