Skip to content

mzanibelli/openbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenBar

A simple status bar for Sway.

See swaybar-protocol(7).

Usage

Run openbar <path-to-configuration-file>.

Use this command as your Sway status_command.

You can reload each module manually by emitting a signal equal to SIGRTMIN+index, where index is the position of the module in the order of declaration. If you have so many modules that SIGRTMAX is reached, the automatically assigned signal cycles back to SIGRTMIN for the next module.

Additionally, all modules will reload upon receiving SIGUSR1.

Configuration

This is an example configuration file. Only shell commands are supported so far because I don't need anything else, but implementing openbar.Module is easy.

[
  {
    "command": ["uptime", "-p"],
    "interval": "1m"
  },
  {
    "command": ["date"],
    "interval": "1s"
  }
]

About

A status bar command for Sway.

Resources

Stars

Watchers

Forks