Skip to content

Commit

Permalink
Make drun options comments consistent and add a bit of whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Aug 26, 2020
1 parent 7011f7e commit 6bde1b2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
13 changes: 9 additions & 4 deletions config/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,16 @@ Settings config = {
.tokenize = TRUE,
.matching = "normal",
.matching_method = MM_NORMAL,
/** Desktop entry fields to match*/

/** Desktop entries to match in drun */
.drun_match_fields = "name,generic,exec,categories,keywords",
/** Only show entries in this category */
.drun_categories = NULL,
/** Desktop format display */
.drun_display_format = "{name} [<span weight='light' size='small'><i>({generic})</i></span>]",
/** Desktop entry show actions */
.drun_show_actions = FALSE,
/** Desktop entry show actions */
/** Desktop format display */
.drun_display_format = "{name} [<span weight='light' size='small'><i>({generic})</i></span>]",

/** Window fields to match in window mode*/
.window_match_fields = "all",
/** Monitor */
Expand Down Expand Up @@ -160,8 +162,11 @@ Settings config = {

.cache_dir = NULL,
.window_thumbnail = FALSE,

/** drun cache */
.drun_use_desktop_cache = FALSE,
.drun_reload_desktop_cache = FALSE,

/** Benchmarks */
.benchmark_ui = FALSE
};
4 changes: 3 additions & 1 deletion include/settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,16 @@ typedef struct
SortingMethod sorting_method_enum;
/** Sorting method. */
char * sorting_method;

/** Desktop entries to match in drun */
char * drun_match_fields;
/** Only show entries in this category */
char * drun_categories;
/** Desktop entry show actions */
unsigned int drun_show_actions;
/** Desktop entry show */
/** Desktop format display */
char * drun_display_format;

/** Search case sensitivity */
unsigned int case_sensitive;
/** Cycle through in the element list */
Expand Down
2 changes: 1 addition & 1 deletion source/xrmoptions.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,13 @@ static XrmOption xrmOptions[] = {

{ xrm_String, "drun-match-fields", { .str = &config.drun_match_fields }, NULL,
"Desktop entry fields to match in drun", CONFIG_DEFAULT },

{ xrm_String, "drun-categories", { .str = &config.drun_categories }, NULL,
"Only show Desktop entry from these categories", CONFIG_DEFAULT },
{ xrm_Boolean, "drun-show-actions", { .num = &config.drun_show_actions }, NULL,
"Desktop entry show actions.", CONFIG_DEFAULT },
{ xrm_String, "drun-display-format", { .str = &config.drun_display_format }, NULL,
"DRUN format string. (Supports: generic,name,comment,exec,categories)", CONFIG_DEFAULT },

{ xrm_Boolean, "disable-history", { .num = &config.disable_history }, NULL,
"Disable history in run/ssh", CONFIG_DEFAULT },
{ xrm_String, "ignored-prefixes", { .str = &config.ignored_prefixes }, NULL,
Expand Down

0 comments on commit 6bde1b2

Please sign in to comment.