From 5ac75bb6891fc1713eb874b2855e61dd855bdd61 Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Fri, 31 Jul 2020 22:50:28 -0400 Subject: [PATCH] deadd notification center shortcut - Add shorcut for opening deadd notification center via bash script --- config.h | 9 ++++++--- dwm.1 | 4 ++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/config.h b/config.h index f036f15..e2e131c 100644 --- a/config.h +++ b/config.h @@ -57,15 +57,21 @@ static const Layout layouts[] = { /* helper for spawning shell commands in the pre dwm-5.0 fashion */ #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 */ static const char *rofiruncmd[] = { "rofi", "-show", "drun", NULL }; static const char *roficlipcmd[] = { "rofi", "-show", "clipboard", NULL }; +static const char *deaddcmd[] = { "/bin/bash", deaddscriptpath, NULL }; static const char *termcmd[] = { "alacritty", NULL }; static Key keys[] = { /* modifier key function argument */ { MODKEY, XK_p, spawn, {.v = rofiruncmd } }, { MODKEY, XK_c, spawn, {.v = roficlipcmd } }, + { MODKEY|ShiftMask, XK_n, spawn, {.v = deaddcmd } }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, @@ -116,6 +122,3 @@ static Button buttons[] = { { ClkTagBar, MODKEY, Button1, tag, {0} }, { ClkTagBar, MODKEY, Button3, toggletag, {0} }, }; - -/* configuration parameters */ -static const char rootdir[] = "/home/sravan/.config"; /* Location of dwm source code */ diff --git a/dwm.1 b/dwm.1 index e111683..6d45250 100644 --- a/dwm.1 +++ b/dwm.1 @@ -78,6 +78,10 @@ Spawn .BR rofi(1) for Greenclip clipboard manager .TP +.B Mod1\-Shift\-n +Spawn +.BR deadd notification center (1) +.TP .B Mod1\-, Focus previous screen, if any. .TP