deadd notification center shortcut
- Add shorcut for opening deadd notification center via bash script
This commit is contained in:
9
config.h
9
config.h
@@ -57,15 +57,21 @@ static const Layout layouts[] = {
|
|||||||
/* helper for spawning shell commands in the pre dwm-5.0 fashion */
|
/* helper for spawning shell commands in the pre dwm-5.0 fashion */
|
||||||
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
|
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
|
||||||
|
|
||||||
|
/* configuration parameters */
|
||||||
|
static const char rootdir[] = "/home/sravan/.config"; /* Location of dwm source code */
|
||||||
|
static const char deaddscriptpath[] = "/home/sravan/.config/deadd/open-notification-center.sh";
|
||||||
|
|
||||||
/* commands */
|
/* commands */
|
||||||
static const char *rofiruncmd[] = { "rofi", "-show", "drun", NULL };
|
static const char *rofiruncmd[] = { "rofi", "-show", "drun", NULL };
|
||||||
static const char *roficlipcmd[] = { "rofi", "-show", "clipboard", NULL };
|
static const char *roficlipcmd[] = { "rofi", "-show", "clipboard", NULL };
|
||||||
|
static const char *deaddcmd[] = { "/bin/bash", deaddscriptpath, NULL };
|
||||||
static const char *termcmd[] = { "alacritty", NULL };
|
static const char *termcmd[] = { "alacritty", NULL };
|
||||||
|
|
||||||
static Key keys[] = {
|
static Key keys[] = {
|
||||||
/* modifier key function argument */
|
/* modifier key function argument */
|
||||||
{ MODKEY, XK_p, spawn, {.v = rofiruncmd } },
|
{ MODKEY, XK_p, spawn, {.v = rofiruncmd } },
|
||||||
{ MODKEY, XK_c, spawn, {.v = roficlipcmd } },
|
{ MODKEY, XK_c, spawn, {.v = roficlipcmd } },
|
||||||
|
{ MODKEY|ShiftMask, XK_n, spawn, {.v = deaddcmd } },
|
||||||
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
|
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
|
||||||
{ MODKEY, XK_b, togglebar, {0} },
|
{ MODKEY, XK_b, togglebar, {0} },
|
||||||
{ MODKEY, XK_j, focusstack, {.i = +1 } },
|
{ MODKEY, XK_j, focusstack, {.i = +1 } },
|
||||||
@@ -116,6 +122,3 @@ static Button buttons[] = {
|
|||||||
{ ClkTagBar, MODKEY, Button1, tag, {0} },
|
{ ClkTagBar, MODKEY, Button1, tag, {0} },
|
||||||
{ ClkTagBar, MODKEY, Button3, toggletag, {0} },
|
{ ClkTagBar, MODKEY, Button3, toggletag, {0} },
|
||||||
};
|
};
|
||||||
|
|
||||||
/* configuration parameters */
|
|
||||||
static const char rootdir[] = "/home/sravan/.config"; /* Location of dwm source code */
|
|
||||||
|
Reference in New Issue
Block a user