i3bar compatible status bar
Find a file
AKP bf69313613
Add logging to a file
Signed-off-by: AKP <tom@tdpain.net>
2022-05-09 15:42:36 +01:00
cmd/bar Add logging to a file 2022-05-09 15:42:36 +01:00
internal Add logging to a file 2022-05-09 15:42:36 +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
README.md Update README.md 2022-04-15 11:34:25 +01:00

cdmbar for i3wm

i3bar compatible status bar


This is a i3wm status bar that's built as a toy project. It's pretty basic, 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.

Features

  • 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. 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.

git clone https://github.com/codemicro/bar.git
cd bar
go build -o cdmbar github.com/codemicro/bar/cmd/bar
// To use with i3, you probably want to put it somewhere that's on PATH
mv ./cdmbar ~/.local/bin

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.