summaryrefslogtreecommitdiff
path: root/dmenu
diff options
context:
space:
mode:
Diffstat (limited to 'dmenu')
-rw-r--r--dmenu/config.h28
-rw-r--r--dmenu/dmenu.c22
2 files changed, 25 insertions, 25 deletions
diff --git a/dmenu/config.h b/dmenu/config.h
index 52a8905..87702f1 100644
--- a/dmenu/config.h
+++ b/dmenu/config.h
@@ -10,23 +10,23 @@ static int dmy = PADDING; /* put dmenu at this y offset (measured from
static unsigned int dmw = 0; /* make dmenu this wide */
/* -fn option overrides fonts[0]; default X11 font or font set */
static const char *fonts[] = {
- "monospace:size=10",
- "NotoColorEmoji:pixelsize=8:antialias=true:autohint=true"};
+ "monospace:size=10",
+ "NotoColorEmoji:pixelsize=8:antialias=true:autohint=true"};
static const unsigned int bgalpha = 0xe0;
static const unsigned int fgalpha = OPAQUE;
static const char *prompt = NULL; /* -p option; prompt to the left of input field */
static const char *colors[SchemeLast][2] = {
- /* fg bg */
- [SchemeNorm] = {"#bbbbbb", "#222222"},
- [SchemeSel] = {"#eeeeee", "#005577"},
- [SchemeOut] = {"#000000", "#00ffff"},
- [SchemeCursor] = {"#222222", "#bbbbbb"},
+ /* fg bg */
+ [SchemeNorm] = {"#bbbbbb", "#222222"},
+ [SchemeSel] = {"#eeeeee", "#005577"},
+ [SchemeOut] = {"#000000", "#00ffff"},
+ [SchemeCursor] = {"#222222", "#bbbbbb"},
};
static const unsigned int alphas[SchemeLast][2] = {
- /* fgalpha bgalphga */
- [SchemeNorm] = {fgalpha, bgalpha},
- [SchemeSel] = {fgalpha, bgalpha},
- [SchemeOut] = {fgalpha, bgalpha},
+ /* fgalpha bgalphga */
+ [SchemeNorm] = {fgalpha, bgalpha},
+ [SchemeSel] = {fgalpha, bgalpha},
+ [SchemeOut] = {fgalpha, bgalpha},
};
/* -l option; if nonzero, dmenu uses vertical list with given number of lines */
@@ -46,8 +46,8 @@ static unsigned int vi_mode = 1;
static unsigned int start_mode = 0; /* mode to use when -vi is passed. 0 = insert mode, 1 = normal mode */
static Key global_esc = { XK_c, ControlMask}; /* escape key when vi mode is not enabled explicitly */
static Key quit_keys[] = {
- /* keysym modifier */
- { XK_q, 0 },
- { XK_Escape, 0 }
+ /* keysym modifier */
+ { XK_q, 0 },
+ { XK_Escape, 0 }
};
diff --git a/dmenu/dmenu.c b/dmenu/dmenu.c
index 771b7ee..a2257b5 100644
--- a/dmenu/dmenu.c
+++ b/dmenu/dmenu.c
@@ -34,23 +34,23 @@
/* enums */
enum {
- SchemeNorm,
- SchemeSel,
- SchemeOut,
- SchemeCursor,
- SchemeLast
+ SchemeNorm,
+ SchemeSel,
+ SchemeOut,
+ SchemeCursor,
+ SchemeLast
}; /* color schemes */
struct item {
- char *text;
- struct item *left, *right;
- int out;
- double distance;
+ char *text;
+ struct item *left, *right;
+ int out;
+ double distance;
};
typedef struct {
- KeySym ksym;
- unsigned int state;
+ KeySym ksym;
+ unsigned int state;
} Key;
static char text[BUFSIZ] = "";