rofi
1.5.4
|
This provides rofi configuration system, supports: More...
Modules | |
XResources Configuration | |
Commandline Configuration | |
Data Structures | |
struct | Settings |
Enumerations | |
enum | WindowLocation { WL_CENTER = 0, WL_NORTH = 1, WL_EAST = 2, WL_SOUTH = 4, WL_WEST = 8, WL_NORTH_WEST = WL_NORTH | WL_WEST, WL_NORTH_EAST = WL_NORTH | WL_EAST, WL_SOUTH_EAST = WL_SOUTH | WL_EAST, WL_SOUTH_WEST = WL_SOUTH | WL_WEST } |
enum | MatchingMethod { MM_NORMAL = 0, MM_REGEX = 1, MM_GLOB = 2, MM_FUZZY = 3 } |
enum | XrmOptionType { xrm_String = 0, xrm_Number = 1, xrm_SNumber = 2, xrm_Boolean = 3, xrm_Char = 4 } |
Functions | |
void | config_parser_add_option (XrmOptionType type, const char *key, void **value, const char *comment) |
void | print_options (void) |
void | print_help_msg (const char *option, const char *type, const char *text, const char *def, int isatty) |
char ** | config_parser_return_display_help (unsigned int *length) |
gboolean | config_parse_set_property (const Property *p, char **error) |
Set config option. More... | |
void | config_parse_dump_config_rasi_format (gboolean changes) |
Dump configuration in rasi format. More... | |
This provides rofi configuration system, supports:
enum MatchingMethod |
Enumeration indicating the matching method to use.
Enumerator | |
---|---|
MM_NORMAL | |
MM_REGEX | |
MM_GLOB | |
MM_FUZZY |
Definition at line 38 of file settings.h.
enum WindowLocation |
Enumeration indicating location or gravity of window.
WL_NORTH_WEST WL_NORTH WL_NORTH_EAST
WL_EAST WL_CENTER WL_EAST
WL_SOUTH_WEST WL_SOUTH WL_SOUTH_EAST
Definition at line 157 of file rofi-types.h.
enum XrmOptionType |
Type of the config options.
Definition at line 69 of file xrmoptions.h.
void config_parse_dump_config_rasi_format | ( | gboolean | changes | ) |
Dump configuration in rasi format.
changes | Only print the changed options. |
Definition at line 617 of file xrmoptions.c.
References CONFIG_DEFAULT, config_parse_dump_config_option(), extra_options, num_extra_options, XrmOption::str, XrmOption::value, and xrmOptions.
Referenced by main().
gboolean config_parse_set_property | ( | const Property * | p, |
char ** | error | ||
) |
Set config option.
Sets both the static as dynamic config option.
p | Property to set |
error | Error msg when not found. |
Definition at line 479 of file xrmoptions.c.
References __config_parser_set_property(), extra_options, Property::name, XrmOption::name, num_extra_options, and xrmOptions.
void config_parser_add_option | ( | XrmOptionType | type, |
const char * | key, | ||
void ** | value, | ||
const char * | comment | ||
) |
type | The type of the value |
key | The key referring to this configuration option |
value | The value to update based [out][in] |
comment | Description of this configuration option |
Add option (at runtime) to the dynamic option parser.
Definition at line 230 of file xrmoptions.c.
References XrmOption::comment, CONFIG_DEFAULT, extra_options, XrmOption::mem, XrmOption::name, num_extra_options, XrmOption::pointer, XrmOption::source, XrmOption::type, XrmOption::value, and xrm_String.
Referenced by main(), mode_set_config(), and setup_abe().
char** config_parser_return_display_help | ( | unsigned int * | length | ) |
length | the length of the returned array |
Creates an array with a strings describing each keybinding.
Get length of name
Generate entries
Definition at line 807 of file xrmoptions.c.
References config_parser_return_display_help_entry(), extra_options, num_extra_options, XrmOption::str, XrmOption::value, and xrmOptions.
Referenced by get_apps().
void print_help_msg | ( | const char * | option, |
const char * | type, | ||
const char * | text, | ||
const char * | def, | ||
int | isatty | ||
) |
option | The name of the option |
type | String describing the type |
text | Description of the option |
def | Current value of the option |
isatty | If printed to a terminal |
Function that does the markup for printing an configuration option to stdout.
Definition at line 754 of file xrmoptions.c.
References color_bold, color_italic, and color_reset.
Referenced by print_dmenu_options(), and print_main_application_options().
void print_options | ( | void | ) |
Print the current configuration to stdout. Uses bold/italic when printing to terminal.
Definition at line 736 of file xrmoptions.c.
References extra_options, num_extra_options, print_option(), XrmOption::str, XrmOption::value, and xrmOptions.
Referenced by help().