GithubHelp home page GithubHelp logo

8bitmcu / dwmblocks-async Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 188 KB

fork of dwmblocks-async with a config file!

License: GNU General Public License v2.0

Makefile 3.98% C 96.02%
dwm dwmblocks suckless

dwmblocks-async's Introduction

dwmblocks-async - dwm status bar (fork)

dwmblocks-async (original) is a dwm status bar that has a modular, async design, so it is always responsive. Imagine i3blocks, but for dwm.

This fork adds a configuration file for the blocks. Check out blocks.toml!

Requirements

Building and installing

  1. clone this repository locally on your machine
  2. run make clean && sudo make install from within the repository folder
  3. copy and edit the config file: cp /etc/dwm/blocks.toml $XDG_CONFIG_HOME/dwm/blocks.toml

Usage

To set dwmblocks-async as your status bar, you need to run it as a background process on startup. One way is to add the following to ~/.xinitrc:

# The binary of `dwmblocks-async` is named `dwmblocks`
dwmblocks &

Signaling changes

Most status bars constantly rerun all scripts every few seconds. This is an option here, but a superior choice is to give your block a signal through which you can indicate it to update on relevant event, rather than have it rerun idly.

For example, the volume block has the update signal 5 by default. I run kill -39 $(pidof dwmblocks) alongside my volume shortcuts in dwm to only update it when relevant. Just add 34 to your signal number! You could also run pkill -RTMIN+5 dwmblocks, but it's slower.

To refresh all the blocks, run kill -10 $(pidof dwmblocks) or pkill -SIGUSR1 dwmblocks.

All blocks must have different signal numbers!

Clickable blocks

Like i3blocks, this build allows you to build in additional actions into your scripts in response to click events. You can check out my status bar scripts as references for using the $BLOCK_BUTTON variable.

To use this feature, set clickable_blocks to 1 in your config file

dwmblocks-async's People

Contributors

8bitmcu avatar dimaglushkov avatar helionsmoker avatar listeriam avatar ssnailed avatar utkarshverma 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.