Skip to content
Snippets Groups Projects
Forked from Jens Nolte / qbar
82 commits behind the upstream repository.
Jens Nolte's avatar
Jens Nolte authored
Renames PullBlock to PollBlock and moves it to the SignalBlock in
QBar.BlockHelper.
The script block is now in linewise mode by default and can be
configured into polling mode with '--poll'.
d75b2d5b
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 default

# 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