i3bar compatible status bar
Find a file
AKP ca6aed08da
Add timer provider
Signed-off-by: AKP <tom@tdpain.net>
2022-05-27 22:00:18 +01:00
cmd/bar Add timer provider 2022-05-27 22:00:18 +01:00
internal Add timer provider 2022-05-27 22:00:18 +01:00
go.mod Add logging to a file 2022-05-09 15:42:36 +01:00
go.sum Add logging to a file 2022-05-09 15:42:36 +01:00
Makefile Clean before run 2022-05-15 21:00:13 +01:00
README.md Add click event handling 2022-05-27 16:19:49 +01:00

cdmbar for i3wm

i3bar compatible status bar


This is a i3wm status bar that's built as a toy project. It's It was pretty basic (I've since added click event support), doesn't have many features and isn't very configurable unless you want to edit the source and recompile it.

This interacts with i3 using the i3bar input protocol. i3 versions earlier than v4.3 are not supported.

Features

  • Supports click events
  • SIGUSR1 forces a refresh
  • It has colours
  • Sometimes it breaks

Compiling locally

These instructions assume you have a recent version of the Go 1.18 (or newer) toolchain installed on your machine and a copy of GNU Make.

cdmbar includes some stuff that works with the VCS stamping introduced in Go 1.18, however you can compile with -buildvcs=false and everything should still work fine without Git installed.

// Alternatively, download the source as a ZIP file
git clone https://github.com/codemicro/bar.git
cd bar

// Will install cdmbar to ~/.local/bin - to use it with i3, we need to put it on PATH
make clean install

// You can customise the install directory using `make install_dir=/usr/local/bin clean install`
// You can build without VCS stamping using `make build_args="-buildvcs=false" clean install`

Using with i3wm

Update the status_command line in your i3wm config file to match the below.

bar {
        status_command cdmbar
}

Changing options

Edit the blocks variable inside of cmd/bar/main.go, then recompile.