Skip to content

Latest commit

 

History

History
211 lines (145 loc) · 5.84 KB

spacebar.asciidoc

File metadata and controls

211 lines (145 loc) · 5.84 KB

spacebar(1)

1. Name

spacebar - a simple status bar for macOS

2. Synopsis

spacebar [-v,--version|-V,--verbose|-m,--message msg|-c,--config config_file]

3. Description

spacebar is a simple status bar for macOS.

4. Options

-v, --version

Print the version and exit.

-V, --verbose

Output debug information to stdout.

-m, --message <msg>

Send message to a running instance of spacebar.

-c, --config <config_file>

Use the specified configuration file.

5. Config

5.1. General Syntax

spacebar -m config <setting>

Get or set the value of <setting>.

5.2. Settings

debug_output [<BOOL_SEL>]

Enable output of debug information to stdout.

display [<display>]

Display to draw the bar on.
Must be one of main or all.

position [<position>]

Position on the screen to draw the bar.
Must be one of top or bottom.

height [<NUM>]

Height in pixels to draw the bar.

title [<BOOL_SEL>]

Enable focused window title display at the centre of the bar.
This cannot be enabled when center_shell’is set to 'on.

spaces [<BOOL_SEL>]

Enable space indicator on the left of the bar.

space_icon_strip [<sym_1> <sym_2> <sym_n>]

Specify symbols separated by whitespace to be used for visualizing spaces.

spaces_for_all_displays [<BOOL_SEL>]

Enable space indicators for spaces on each display.

space_icon [<sym>]

Specify a general symbol to use for any given space that does not have a match in space_icon_strip.

space_icon_color [<COLOR>]

Color to use for drawing the current space icon.

space_icon_color_secondary [<COLOR>]

Color to use for drawing the current space icon of the second display.

space_icon_color_tertiary [<COLOR>]

Color to use for drawing the current space icon of the third display.

display_separator [<BOOL_SEL>]

Enable separator between the spaces for each display.

display_separator_icon [<sym>]

Specify a symbol to use for the display separator.

display_separator_icon_color [<COLOR>]

Color to use for drawing the display separator icon.

clock [<BOOL_SEL>]

Enable clock on the right of the bar.

power [<BOOL_SEL>]

Enable power indicator on the right of the bar.

padding_left [<NUM>]

Padding in pixels between the left edge of the display and the first item.

padding_right [<NUM>]

Padding in pixels between the right edge of the display and the last item.

spacing_left [<NUM>]

Spacing in pixels between the left space indicators.

spacing_right [<NUM>]

Spacing in pixels between the right status segments.

text_font [<font_family>:<font_style>:<font_size>]

Specify name, style and size of font to use for drawing text.
Use Font Book.app to identify the correct name.

icon_font [<font_family>:<font_style>:<font_size>]

Specify name, style and size of font to use for drawing icon symbols.
Use Font Book.app to identify the correct name.

background_color [<COLOR>]

Color to use for drawing status bar background.

foreground_color [<COLOR>]

Color to use for drawing status bar elements.

power_icon_strip [<sym_battery> <sym_ac>]

Specify two symbols separated by whitespace.
The first symbol represents battery power and the second symbol indicates AC.

power_icon_color [<COLOR>]

Color to use for drawing the power (charging) icon.

battery_icon_color [<COLOR>]

Color to use for drawing the battery icon.

clock_icon [<sym>]

Specify a symbol to represent the current time.

clock_icon_color [<COLOR>]

Color to use for drawing the clock icon.

clock_format [<sym>]

Specify a format for the current time, according to the strftime function.

dnd [<BOOL_SEL>]

Enable a DoNotDisturb indicator on the right of the bar.

dnd_icon [<sym>]

Specify a symbol to represent the current DoNotDisturb status.

dnd_icon_color [<COLOR>]

Color to use for drawing the DoNotDisturb icon.

left_shell [<BOOL_SEL>]

Enable shell output on the left of the bar.

right_shell [<BOOL_SEL>]

Enable shell output on the right of the bar.

center_shell [<BOOL_SEL>]

Enable shell output at the center of the bar.
This cannot be enabled when title is set to on.

left_shell_icon [<sym>]

Specify a symbol to prefix the left shell output.

left_shell_icon_color [<COLOR>]

Color to use for drawing the left shell icon.

left_shell_command [<shell command>]

Command pipeline to retrieve the output for displaying in the left shell section.
There is NO timeout protection for the command pipeline, so be sure to set it to something that returns output quickly.

right_shell_icon [<sym>]

Specify a symbol to prefix the right shell output.

right_shell_icon_color [<COLOR>]

Color to use for drawing the right shell icon.

right_shell_command [<shell command>]

Command pipeline to retrieve the output for displaying in the right shell section.
There is NO timeout protection for the command pipeline, so be sure to set it to something that returns output quickly.

center_shell_command [<shell command>]

Command pipeline to retrieve the output for displaying in the center shell section.
There is NO timeout protection for the command pipeline, so be sure to set it to something that returns output quickly.

6. Exit Codes

If spacebar can’t handle a message, it will return a non-zero exit code.

7. Author

Calum MacRae <hi at cmacr.ae>