Skip to content
Snippets Groups Projects
Forked from Jens Nolte / qbar
165 commits behind the upstream repository.
Jens Nolte's avatar
Jens Nolte authored
This removes Pango support for script blocks. Persistent scripts don't
have an alternative way to format their output for now.
73fe3c6d
History

qbar

qbar is a status command for sway and i3.

Installation

Compiling from Source

Building qbar requires stack. To build it run:

stack build

You can also use the scripts in the bin-directory (all scripts will rebuild the project if required):

# Launch as swaybar status command while redirecting stderr to shell
./bin/run-sway

# Run the binary directly (mostly used to control the bar via rpc)
./bin/run --help

# Install the binary to ~/.local/bin
./bin/install

Configuration

Custom configuration is currently only possible from Haskell:

myConfig :: BarIO ()
myConfig = do
  addBlock dateBlock

main :: IO ()
main = parseOptions >>= runQBar myConfig