2022-12-06 19:27:19 +01:00
|
|
|
/* Bar configuration
|
|
|
|
*
|
|
|
|
* This header is for configuring the bar along with its modules. Below are some usage notes.
|
|
|
|
*
|
|
|
|
* Monitor:
|
2023-01-29 01:09:10 +01:00
|
|
|
* -1: Show the module on all monitors.
|
|
|
|
* 0": Show on the main monitor (monitor 0).
|
|
|
|
* 'A': Show on the focused monitor.
|
2022-12-06 19:27:19 +01:00
|
|
|
*
|
|
|
|
* Bar:
|
2023-01-29 01:09:10 +01:00
|
|
|
* 0: Main bar.
|
|
|
|
* 1: Extra bar.
|
2022-12-06 19:27:19 +01:00
|
|
|
*
|
|
|
|
* Alignment:
|
2023-01-29 01:09:10 +01:00
|
|
|
* bar_align_left: Force the module to be placed on the left side of the bar if possible.
|
|
|
|
* bar_align_right: Force the module to be placed on the right side of the bar if possible.
|
|
|
|
* bar_align_center: Force the module to be placed in the center of the bar if possible.
|
|
|
|
* bar_align_left_left: Force the module to be placed on the left side of the bar next to the center split.
|
|
|
|
* bar_align_left_right: Force the module to be placed on the right side of the bar next to the center split.
|
|
|
|
* bar_align_left_center: Force the module to be placed on the center in the middle of the remaining space left of the center split on the left..
|
|
|
|
* bar_align_right_left: Force the module to be placed on the left side of the bar next to the center split.
|
|
|
|
* bar_align_right_right: Force the module to be placed on the right side of the bar next to the center split.
|
|
|
|
* bar_align_right_center: Force the module to be placed on the center in the middle of the remaining space left of the center split on the right.
|
|
|
|
* bar_align_none: No specific alignment. This will give the module the remaining space.
|
2022-12-19 15:43:25 +01:00
|
|
|
*
|
2022-12-06 19:27:19 +01:00
|
|
|
* Width:
|
|
|
|
* Function to run when getting the width of the module.
|
2022-12-19 15:43:25 +01:00
|
|
|
*
|
2023-02-03 16:52:17 +01:00
|
|
|
* Syntax: width_<module>
|
2023-01-29 01:09:10 +01:00
|
|
|
* Example: width_tags_pwl
|
2022-12-19 15:43:25 +01:00
|
|
|
*
|
2022-12-06 19:27:19 +01:00
|
|
|
* Draw
|
|
|
|
* Function to run when drawing the module.
|
|
|
|
*
|
2023-02-03 16:52:17 +01:00
|
|
|
* Syntax: draw_<module>
|
2023-01-29 01:09:10 +01:00
|
|
|
* Example: draw_tags_pwl
|
2022-12-06 19:27:19 +01:00
|
|
|
*
|
|
|
|
* Click
|
|
|
|
* Function to run when getting a click.
|
|
|
|
*
|
2023-02-03 16:52:17 +01:00
|
|
|
* Syntax: click_<module>
|
2023-01-29 01:09:10 +01:00
|
|
|
* Example: click_tags_pwl
|
2022-12-06 19:27:19 +01:00
|
|
|
*
|
2023-02-03 16:52:17 +01:00
|
|
|
* Value
|
|
|
|
* Value passed to the functions. For most functions it doesn't do anything and isn't used, In this case simply pass '0'.
|
|
|
|
*
|
|
|
|
* Syntax: <int>
|
|
|
|
* Example: 1
|
|
|
|
*
|
2022-12-06 19:27:19 +01:00
|
|
|
* Module name
|
|
|
|
* Does nothing special, just helpful for debugging among other things.
|
|
|
|
*
|
|
|
|
* Module list
|
|
|
|
*
|
|
|
|
* List of modules that can be used.
|
|
|
|
*
|
2023-01-29 01:09:10 +01:00
|
|
|
* ltsymbol: Standard, basic layout icon.
|
|
|
|
* tags: Basic tags, without powerlines.
|
|
|
|
* tags_pwl: Tags with powerlines.
|
|
|
|
* systray: System tray.
|
|
|
|
* status_basic: Basic status bar.
|
|
|
|
* status_basic_es: Basic status bar (Extra status).
|
|
|
|
* status: Clickable status bar with color support.
|
|
|
|
* status_es: Clickable status bar with color support (Extra status).
|
|
|
|
* status_pwl: Status with powerlines. NOTE: It is not clickable.
|
|
|
|
* status_pwl_es: Status with powerlines. NOTE: It is not clickable (Extra status).
|
|
|
|
* title: Title, shows all windows, including hidden windows.
|
|
|
|
* title_basic: Basic title, shows focused window.
|
2022-12-06 19:27:19 +01:00
|
|
|
*
|
2022-12-03 15:25:31 +01:00
|
|
|
*/
|
|
|
|
static const BarRule barrules[] = {
|
2023-02-03 16:52:17 +01:00
|
|
|
/* Monitor Bar Alignment Width Draw Click Value Module name */
|
|
|
|
{ -1, 0, bar_align_left, width_ltsymbol, draw_ltsymbol, click_ltsymbol, 0, "layout" },
|
|
|
|
{ -1, 0, bar_align_left, width_tags_pwl, draw_tags_pwl, click_tags_pwl, 0, "powerline tags" },
|
|
|
|
{ 'A', 0, bar_align_right, width_systray, draw_systray, click_systray, 0, "systray" },
|
|
|
|
{ -1, 0, bar_align_right, width_status_pwl, draw_status_pwl, click_status_pwl, 0, "powerline status" },
|
|
|
|
{ -1, 0, bar_align_none, width_title, draw_title, click_title, 0, "title" },
|
2022-12-03 15:25:31 +01:00
|
|
|
};
|