• Stars
    star
    411
  • Rank 105,247 (Top 3 %)
  • Language
    C
  • License
    GNU General Publi...
  • Created about 5 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

My status bar: my build of the modular dwmblocks

dwmblocks

Modular status bar for dwm written in c.

Modifying blocks

The statusbar is made from text output from commandline programs. Blocks are added and removed by editing the config.h file.

Luke's build

I have dwmblocks read my preexisting scripts here in my dotfiles repo. So if you want my build out of the box, download those and put them in your $PATH. I do this to avoid redundancy in LARBS, both i3 and dwm use the same statusbar scripts.

Signaling changes

Most statusbars constantly rerun every script every several seconds to update. This is an option here, but a superior choice is giving your module a signal that you can signal to it to update on a relevant event, rather than having it rerun idly.

For example, the audio module has the update signal 10 by default. Thus, running pkill -RTMIN+10 dwmblocks will update it.

You can also run kill -44 $(pidof dwmblocks) which will have the same effect, but is faster. Just add 34 to your typical signal number.

My volume module never updates on its own, instead I have this command run along side my volume shortcuts in dwm to only update it when relevant.

Note that all modules must have different signal numbers.

Clickable modules

Like i3blocks, this build allows you to build in additional actions into your scripts in response to click events. See the above linked scripts for examples of this using the $BLOCK_BUTTON variable.

For this feature to work, you need the appropriate patch in dwm as well. See here. Credit for those patches goes to Daniel Bylinka ([email protected]).

More Repositories

1

voidrice

My dotfiles (deployed by LARBS)
Shell
4,189
star
2

mutt-wizard

A system for automatically configuring mutt and isync with a simple interface and safe passwords
Shell
2,305
star
3

based.cooking

A simple culinary website.
CSS
2,148
star
4

LARBS

Luke's Auto-Rice Bootstrapping Scripts: Installation Scripts for My Arch Linux Meta-Distribution
Shell
1,985
star
5

st

Luke's fork of the suckless simple terminal (st) with vim bindings and Xresource compatibility.
C
1,591
star
6

emailwiz

Script that installs/configures a Dovecot, Postfix, Spam Assassin, OpenDKIM Debian web server
Shell
1,527
star
7

dwm

Luke's build of dwm
C
777
star
8

landchad

Landchad.net Website Tutorial Page
CSS
353
star
9

lb

Blog & RSS system in less than 100 lines of shell script
Shell
282
star
10

latex-templates

My LaTeX templates, bibliography file, etc.
TeX
208
star
11

lugo

Luke's Hugo Theme
HTML
157
star
12

dmenu

dmenu setup for LARBS
C
145
star
13

shadowchat

A simple Monero (XMR) superchat donation system in Go
Go
122
star
14

vul

Latin Vulgate Bible on the Command Line
Awk
107
star
15

md-website-cv

A system for CVs/resumes and websites based on markdown files
HTML
96
star
16

etc

Random files that could be of interest
83
star
17

grb

A cli-accessible Greek Bible with the Septuagint, SBL and Apocrypha
Awk
76
star
18

surf

Luke's build of the surf web browser
C
65
star
19

shortcut-sync

Luke's Scripts for bash, ranger and qutebrowser synchronization
Shell
59
star
20

vimling

Small vim scripts for writing IPA and other special characters
Vim Script
49
star
21

critique-of-reason

Term paper on Rationality
TeX
35
star
22

corpus-latinum

Luke's Latin Tagger and (under construction) Corpus
Python
26
star
23

go-webring

Go
25
star
24

scroll

Minor personal tweaks to suckless's scroll (for st)
C
24
star
25

syntax-without-syntax

Qualifying paper on how word orders are driven by prosodic parameters
TeX
18
star
26

scope-without-syntax

Quantifier scope ambiguities are derived entirely from pragmatic assumptions, implemented in Game Theory.
TeX
15
star