rofi 1.7.5
|
Topics | |
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 , MM_PREFIX = 4 } |
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. | |
void | config_parse_dump_config_rasi_format (FILE *out, gboolean changes) |
Dump configuration in rasi format. | |
This provides rofi configuration system, supports:
enum MatchingMethod |
Enumeration indicating the matching method to use.
Enumerator | |
---|---|
MM_NORMAL | |
MM_REGEX | |
MM_GLOB | |
MM_FUZZY | |
MM_PREFIX |
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 235 of file rofi-types.h.
enum XrmOptionType |
Type of the config options.
Definition at line 72 of file xrmoptions.h.
void config_parse_dump_config_rasi_format | ( | FILE * | out, |
gboolean | changes ) |
Dump configuration in rasi format.
out | The destination. |
changes | Only print the changed options. |
Definition at line 820 of file xrmoptions.c.
References config, CONFIG_DEFAULT, CONFIG_NO_DISPLAY, config_parse_dump_config_option(), extra_options, num_extra_options, ThemeWidget::num_widgets, rofi_configuration, rofi_theme_print_index(), XrmOption::str, Settings::theme, XrmOption::value, ThemeWidget::widgets, 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 711 of file xrmoptions.c.
References __config_parser_set_property(), extra_options, extra_parsed_options, Property::name, XrmOption::name, num_extra_options, P_STRING, rofi_theme_property_copy(), rofi_theme_property_free(), _PropertyValue::s, Property::type, Property::value, 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 455 of file xrmoptions.c.
References __config_parser_set_property(), XrmOption::comment, CONFIG_DEFAULT, extra_options, extra_parsed_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 1032 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 975 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 958 of file xrmoptions.c.
References extra_options, num_extra_options, print_option(), XrmOption::str, XrmOption::value, and xrmOptions.
Referenced by help().