Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Mouse-driven Tiling Window Manager

branch: master
Octocat-spinner-32 issues Updated for Go weekly.2012-02-14 February 17, 2012
Octocat-spinner-32 test make the terminal emulator used specifiable January 24, 2013
Octocat-spinner-32 xgb_patched Modifer key need to be pressed with mouse commands July 26, 2013
Octocat-spinner-32 .gitignore Initial commit December 05, 2011
Octocat-spinner-32 LICENSE Licence file added December 07, 2011
Octocat-spinner-32 README.md screenshot update February 09, 2013
Octocat-spinner-32 atoms.go Updated for Go weekly.2012-02-14 February 17, 2012
Octocat-spinner-32 box.go Updated for Go weekly.2012-02-14 February 17, 2012
Octocat-spinner-32 box_list.go BoxList.PushBack fixed December 27, 2011
Octocat-spinner-32 boxed_window.go Updated for Go weekly.2012-02-14 February 17, 2012
Octocat-spinner-32 cfg_utils.go closeCurrentWindow command added September 20, 2013
Octocat-spinner-32 common.go Updated for Go weekly.2012-02-14 February 17, 2012
Octocat-spinner-32 config.go closeCurrentWindow command added September 20, 2013
Octocat-spinner-32 events.go Updated for Go weekly.2012-02-14 February 17, 2012
Octocat-spinner-32 geometry.go Box reimplemented December 12, 2011
Octocat-spinner-32 globals.go Updated for Go weekly.2012-02-14 February 17, 2012
Octocat-spinner-32 input_events.go NumLock doesn't disable keyboard commands February 22, 2012
Octocat-spinner-32 main.go Updated for Go weekly.2012-02-14 February 17, 2012
Octocat-spinner-32 manage.go Updated for Go weekly.2012-02-14 February 17, 2012
Octocat-spinner-32 panel.go New 'first' paran in NewPannel. New layout for First desk. April 15, 2013
Octocat-spinner-32 root_panel.go Modifer key need to be pressed with mouse commands July 26, 2013
Octocat-spinner-32 screenshot.jpg Default layout changed, screenshot added December 28, 2011
Octocat-spinner-32 utils.go Imporved window moving December 26, 2011
Octocat-spinner-32 window.go Updated for Go weekly.2012-02-14 February 17, 2012
README.md

I like tiling window management, but all tiling window managers known to me force to use keyboard for dozen of things. So this is my attempt to write some mouse-driven tiling wm in Go.

I have never written any wm before, so this code isn't probably a good example how to write wm at all but maybe some example how to write wm in Go.

This program isn't mature window manager yet, but I started using it for everyday work (it replaced xmodad).

mdtwm uses only right mouse button as follows:

  • single-click-move: move a window (you can move between desktops),
  • single-slow-click: send right click to window,
  • double-click-move: tile/untile window,
  • triple-click: close window.

Default layout (see config.go)

  • three desks
  • first desk contains two panels
  • second desk contains one horizontal panel
  • third desk contains one vertical panel

Default keybindings (see config.go)

  • Mod+Enter: new terminal (gnome-terminal)
  • Mod+ESC: exit
  • Mod+1: first desk
  • Mod+2: second desk
  • Mod+3: thrid desk

mdtwm doesn't contain its own status bar yet, but there is support for dzen2. If cfg.StatusLogger is set to Dzen2Logger (as in default config.go) you can use mdtwm together with dzen2 as follows:

mdtwm 2>~/mdtwm.log |dzen2 -e '' -ta l -fg '#ddddcc' -bg '#555588'

Known issues:

  • You can't change current desktops without use of keyboard.
  • See issues directory.

Build instruction:

go get github.com/ziutek/mdtwm

Screenshot:

Screenshot image

Something went wrong with that request. Please try again.