Skip to content

LordRusk/gocaudices

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Go Report Card

Simple dwmblocks alternative

Gocaudices is a dwmblocks alternative written in GO using xgb.

About

I wrote this alternative to be simple, fast, and elegant. This project is never meant to exceed 100 SLOC in the base build.

How-To

First download gocaudices with: git clone https://github.com/lordrusk/gocaudices. To make sure you have all dependencies installed you can run go mod tidy. You can (re)compile with: go install

  • Configure

Gocaudices can be configured through adding blocks in the blocks.go I've left an example of a normal blocks.go config file that works with my dotfiles.

  • Shell commands

To run shell commands, add inSh: true, to the block in blocks.go.

  • Update a module

The block definition of {cmd: "volume", upSig: 10}, would be updated like kill -44 $(pidof gocaudices). A dwm volume mute keybind might look like { 0, XF86XK_AudioMute, spawn, SHCMD("pamixer -t; kill -44 $(pidof gocaudices)") },.

Patches

Patches are hosted in this repo in patches/*patch*. To apply patches: patch -p1 < path/to/patch.diff. To create a proper patch, refer to hacking. If you would like to contribute a patch or feature, create a pull request.

(Non)-Features

  • Multiple blocks can have the same update signal.

FQA -- Frequently Questioned Answers

  • Does it have bar click-ability?

    • Yes.

About

Gocaudices is a dwmblocks alternative written in GO in less than 100 SLOC using xgb.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages