Giter VIP home page Giter VIP logo

nwm's Introduction

nwm: A programmable window manager for X

nwm is a "tiling" window manager for X. It is written in C, but exposes a Scheme API that can be used to change it's behavior at run-time. For example, the algorithm for automatically laying out windows is implemented in Scheme and can be changed at run-time. There is a simple REPL (read, evaluate, print loop) program included which can be used to "talk" to the window manager in Scheme while it is running. This project is definitely a work in progress and I doubt it would be usable for anybody in it's current state.

Why?

I like to use tiling window managers, (especially on small screens) I enjoy programming in C and learning how X works. I also like Lisp and thought it would be fun to try using Scheme as an extension language. So yeah... basically just for fun! :)

Building

If you want to try building this project, you will need to first install the following dependencies:

  • XCB libraries:
    • xcb
    • xcb-aux
    • xcb-event
    • xcb-keysyms
    • xcb-xinerama
  • libguile
  • libreadline

Once you have all the dependencies, run make in the project directory to build the nwm and nwm-repl programs. I intend to improve the build system at some point, but that's currently not a high priority.

Running

Before running the first time, you should set up the default configuration file in your home directory, like this:

  1. mkdir ~/.nwm
  2. cp scheme/init.scm ~/.nwm

Now set the DISPLAY environment variable (if needed) and then run the nwm program.

You can run nwm-repl to get a REPL you can use to execute Scheme code inside the running window manager.

nwm's People

Contributors

brandoninvergo avatar nizmic avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.