i3
Data Structures | Public Types | Public Member Functions | Data Fields
Barconfig Struct Reference

Holds the status bar configuration (i3bar). More...

#include <config.h>

Collaboration diagram for Barconfig:
Collaboration graph
[legend]

Data Structures

struct  bar_colors
 

Public Types

enum  { M_DOCK = 0, M_HIDE = 1 }
 Bar display mode (hide unless modifier is pressed or show in dock mode) More...
 
enum  {
  M_NONE = 0, M_CONTROL = 1, M_SHIFT = 2, M_MOD1 = 3,
  M_MOD2 = 4, M_MOD3 = 5, M_MOD4 = 6, M_MOD5 = 7
}
 Bar modifier (to show bar when in hide mode). More...
 
enum  { P_BOTTOM = 0, P_TOP = 1 }
 Bar position (bottom by default). More...
 

Public Member Functions

 TAILQ_ENTRY (Barconfig) configs
 

Data Fields

char * id
 Automatically generated ID for this bar config.
 
int num_outputs
 Number of outputs in the outputs array.
 
char ** outputs
 Outputs on which this bar should show up on.
 
char * tray_output
 Output on which the tray should be shown.
 
char * socket_path
 Path to the i3 IPC socket.
 
enum Barconfig:: { ... }  mode
 
enum Barconfig:: { ... }  modifier
 
enum Barconfig:: { ... }  position
 
char * i3bar_command
 Command that should be run to execute i3bar, give a full path if i3bar is not in your $PATH.
 
char * status_command
 Command that should be run to get a statusline, for example 'i3status'.
 
char * font
 Font specification for all text rendered on the bar.
 
bool hide_workspace_buttons
 Hide workspace buttons? Configuration option is 'workspace_buttons no' but we invert the bool to get the correct default when initializing with zero.
 
bool verbose
 Enable verbose mode? Useful for debugging purposes.
 
struct Barconfig::bar_colors colors
 

Detailed Description

Holds the status bar configuration (i3bar).

One of these structures is created for each 'bar' block in the config.

Definition at line 211 of file config.h.

Member Enumeration Documentation

anonymous enum

Bar display mode (hide unless modifier is pressed or show in dock mode)

Enumerator
M_DOCK 
M_HIDE 

Definition at line 232 of file config.h.

anonymous enum

Bar modifier (to show bar when in hide mode).

Enumerator
M_NONE 
M_CONTROL 
M_SHIFT 
M_MOD1 
M_MOD2 
M_MOD3 
M_MOD4 
M_MOD5 

Definition at line 235 of file config.h.

anonymous enum

Bar position (bottom by default).

Enumerator
P_BOTTOM 
P_TOP 

Definition at line 247 of file config.h.

Member Function Documentation

Barconfig::TAILQ_ENTRY ( Barconfig  )

Field Documentation

struct Barconfig::bar_colors Barconfig::colors

Referenced by CFGFUN(), load_configuration(), and yyparse().

char* Barconfig::font

Font specification for all text rendered on the bar.

Definition at line 259 of file config.h.

Referenced by CFGFUN(), load_configuration(), and yyparse().

bool Barconfig::hide_workspace_buttons

Hide workspace buttons? Configuration option is 'workspace_buttons no' but we invert the bool to get the correct default when initializing with zero.

Definition at line 264 of file config.h.

Referenced by CFGFUN(), IPC_HANDLER(), and yyparse().

char* Barconfig::i3bar_command

Command that should be run to execute i3bar, give a full path if i3bar is not in your $PATH.

By default just 'i3bar' is executed.

Definition at line 252 of file config.h.

Referenced by CFGFUN(), load_configuration(), main(), and yyparse().

char* Barconfig::id

Automatically generated ID for this bar config.

Used by the bar process to request a specific configuration.

Definition at line 214 of file config.h.

Referenced by CFGFUN(), IPC_HANDLER(), load_configuration(), main(), migrate_i3bar_exec(), and yyparse().

enum { ... } Barconfig::mode

Referenced by CFGFUN(), IPC_HANDLER(), and yyparse().

enum { ... } Barconfig::modifier

Referenced by CFGFUN(), IPC_HANDLER(), and yyparse().

int Barconfig::num_outputs

Number of outputs in the outputs array.

Definition at line 217 of file config.h.

Referenced by CFGFUN(), IPC_HANDLER(), load_configuration(), and yyparse().

char** Barconfig::outputs

Outputs on which this bar should show up on.

We use an array for simplicity (since we store just strings).

Definition at line 220 of file config.h.

Referenced by CFGFUN(), IPC_HANDLER(), load_configuration(), and yyparse().

enum { ... } Barconfig::position

Referenced by CFGFUN(), IPC_HANDLER(), and yyparse().

char* Barconfig::socket_path

Path to the i3 IPC socket.

This option is discouraged since programs can find out the path by looking for the I3_SOCKET_PATH property on the root window!

Definition at line 229 of file config.h.

Referenced by CFGFUN(), load_configuration(), and yyparse().

char* Barconfig::status_command

Command that should be run to get a statusline, for example 'i3status'.

Will be passed to the shell.

Definition at line 256 of file config.h.

Referenced by CFGFUN(), load_configuration(), migrate_i3bar_exec(), and yyparse().

char* Barconfig::tray_output

Output on which the tray should be shown.

The special value of 'no' disables the tray (it’s enabled by default).

Definition at line 224 of file config.h.

Referenced by CFGFUN(), load_configuration(), and yyparse().

bool Barconfig::verbose

Enable verbose mode? Useful for debugging purposes.

Definition at line 267 of file config.h.

Referenced by CFGFUN(), IPC_HANDLER(), and yyparse().


The documentation for this struct was generated from the following file: