Coder Social home page Coder Social logo

dwm's Introduction

dwm - dynamic window manager

dwm is an extremely fast, small, and dynamic window manager for X.

This is (my work in progress) build for dwm taken under the MIT License from suckless website.

Patches

  • autostart
  • decorhints
  • dwmc
  • focusmaster
  • restartsig
  • scratchpad
  • swallow
  • vanitygaps
  • xresources
  • center
  • cmdsignal
  • noborderfloating fix
  • fix borders (for border opacity)

Requirements

In order to build dwm you need the Xlib header files.
For swallow :
xcb libxcb-xkb-dev x11-xkb-utils libx11-xcb-dev libxkbcommon-x11-dev libxcb-res0 libxcb-res0-dev (Ubuntu 20.04)

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

Makefile is edited to delete config.h

Special Additions

This build can change the color live by using the Xresources patch and an Image Color extractor like pywal.
A new function that reads live the X server resource database has been added. It was taken from the xrdb patch.

void
livereloadxrdb(const Arg *arg)
{
        load_xresources();
        int i;
        for (i = 0; i < LENGTH(colors); i++)
                scheme[i] = drw_scm_create(drw, colors[i], 3);
        focus(NULL);
        arrange(NULL);
}

By attaching the livereloadxrdb function to a keybinding or by adding it to the dwmc patch, the livereload function be called manualy or by a script to reload the colors added with the $ xrdb.

For example with this build pywal is given a template to fill after extracting the colors and then xrdb is given the path to the output of the template in the ~/.cache/wal directory.

wal -qn -i "Path to image"
feh --bg-fill "Path to image"
xrdb -merge "$HOME/.cache/wal/dwm.Xresources"
dwmc reloadxrdb

dwm's People

Contributors

garbeam avatar igeragera avatar hiltjo avatar cls avatar anydot avatar schachmat avatar cdown avatar ericpruitt avatar klemensn avatar shad0w73 avatar dcousens avatar ianremmler avatar osandov avatar bakkeby avatar

Stargazers

Amin D. avatar

Watchers

 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.