The bar looks for $XDG_CONFIG_HOME/barbarian/config.json5 or $HOME/.config/barbarian/config.json5 example config
To restart or stop a module right-click it while holding CTRL
The bar communicates with modules via stdio A module must write either plain text or json to stdout
Example module output:
{
"items": [
{"text": "Hello, world", "fg": "ffffffff", "bg": "000000ff"}
],
"tooltip": "Some tooltip",
"menu": {
"open_on": "Left",
"items": [
{"key": "Hello", "value": "World"}
]
}
}Note
The json must not contain new lines
The module receives events(click, scroll, menu-item selected) via stdin
Example module input:
{
"type": "Click", // Can be "Scroll" or "Menu",
"event": {
"button": "Left", // Can be "Right" or "Middle"
"item": 0, // Clicked item index
}
}{
"type": "Scroll",
"event": {
"dir": -1,
}
}{
"type": "Menu",
"event": {
"key": "Hello",
}
}Look for examples in ./example-modules
- Test multiple monitors
- Scaling
- odin compiler
- wayland
- egl
git clone https://github.com/xb-bx/barbarian
cd barbarian
makepkg -sigit clone https://github.com/xb-bx/barbarian --recursive
sudo make install