Coder Social home page Coder Social logo

dwm's Introduction

Build Instruction

Before install you need mkdir /home/YOURUSERNAME/.local/share/dwm

mkdir -p ~/.local/share/dwm

and put the script there. So it's necessary to change the HOMEDIR variable in the Makefile.

And the script's keyboard shortcut is also hardcoded. Changed the variable listed below to successfully execute the script.

static const char *powercmd[] = { "/home/YOURUSERNAME/.local/share/dwm/power", NULL };
static const char *chwpcmd[] = { "/home/YOURUSERNAME/.local/share/dwm/chwp", NULL };
static const char *volupcmd[] = { "/home/YOURUSERNAME/.local/share/dwm/dwm-volume-ctl", "up", NULL };
static const char *voldowncmd[] = { "/home/YOURUSERNAME/.local/share/dwm/dwm-volume-ctl", "down", NULL };

I want to use the getenv("HOME") funtion provided in the stdlib.h. But the config header file only accept static const value, so you can only replace the name manually.

Quicker reload

If you are using xinitrc to run dwm, use this while loop to run your dwm:

while : ; do
    dwm && break || continue
    # sleep 5
done

Use pkill dwm to kill the current dwm instance, it will exit 1 that break the before if statement and continue the while loop. It will exit 0 if you close the dwm manually.

It is recommended to add a sleep after the loop, this can help prevent the dwm launch too fast. It is useful when your dwm exit with error like segment fault.

desktop

dwm's People

Contributors

ocfox avatar simoxdcs 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.