added keybindings to config.def.h
This commit is contained in:
parent
45ec236958
commit
4e7a12053d
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
|
|
||||||
/* appearance */
|
/* appearance */
|
||||||
const char *font = NULL;
|
const char *font = "-*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*";
|
||||||
const char *normbgcolor = "#1793D1";
|
const char *normbgcolor = "#1793D1";
|
||||||
const char *normfgcolor = "#DDDDDD";
|
const char *normfgcolor = "#DDDDDD";
|
||||||
const char *critbgcolor = "#ffaaaa";
|
const char *critbgcolor = "#ffaaaa";
|
||||||
@ -17,6 +17,11 @@ int timeouts[] = { 10, 10, 0 }; /* low, normal, critical */
|
|||||||
const char *geom = "0x4-10+10"; /* geometry */
|
const char *geom = "0x4-10+10"; /* geometry */
|
||||||
|
|
||||||
|
|
||||||
|
char *key_string = "space"; /* set to NULL for no keybinging */
|
||||||
|
KeySym mask = ControlMask;
|
||||||
|
/* KeySym mask = ControlMask || Mod4Mask */
|
||||||
|
|
||||||
|
|
||||||
int verbose = True; /* print info to stdout? */
|
int verbose = True; /* print info to stdout? */
|
||||||
|
|
||||||
|
|
||||||
|
2
dunst.c
2
dunst.c
@ -42,7 +42,6 @@ static msg_queue_t *msgqueue = NULL;
|
|||||||
static time_t now;
|
static time_t now;
|
||||||
static int visible = False;
|
static int visible = False;
|
||||||
static KeySym key = NoSymbol;
|
static KeySym key = NoSymbol;
|
||||||
static KeySym mask = 0;
|
|
||||||
static screen_info scr;
|
static screen_info scr;
|
||||||
static dimension_t geometry;
|
static dimension_t geometry;
|
||||||
static int font_h;
|
static int font_h;
|
||||||
@ -540,6 +539,7 @@ main(int argc, char *argv[]) {
|
|||||||
geometry.mask = XParseGeometry(geom,
|
geometry.mask = XParseGeometry(geom,
|
||||||
&geometry.x, &geometry.y,
|
&geometry.x, &geometry.y,
|
||||||
&geometry.w, &geometry.h);
|
&geometry.w, &geometry.h);
|
||||||
|
key = key_string ? XStringToKeysym(key_string) : NoSymbol;
|
||||||
|
|
||||||
while(1) {
|
while(1) {
|
||||||
static struct option long_options[] = {
|
static struct option long_options[] = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user