Skip to content

benwah/pydwm

Repository files navigation

What is this?

This is a simple python wrapper around dwm.

It compiles dwm as a shared library, provides a pydwm module and a pydwm console script that calls pydwm's init_dwm function.

Why?

The main reason for doing this is to faciliate creating a startup script for DWM, without having to add something like adding python my_scripy.py & dwm to ~/.xinitrc, which results in some lingering processes when logging out.

With this, you can start dwm from a python script, and spawn sub-processes / threads or whatever you want.

Build

To build this, you'll need the source code for some libraries DWM requires. On Ubuntu:

sudo apt-get install build-essential libx11-dev libxft-dev libxinerama-dev

Run tests

python -m pytest

Install

About

Simple Python Wrapper around dwm (Desktop Window Manager)

Resources

License

Stars

Watchers

Forks

Packages

No packages published