From 8e4f659772b7b4e99abe2efb30ad1192fd8da4de Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Fri, 26 Feb 2021 20:48:12 -0500 Subject: [PATCH] Replace deadd w/ dunst - Replace deadd autostart and keybindings with dunst --- config.def.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/config.def.h b/config.def.h index cffd22d..af631ae 100644 --- a/config.def.h +++ b/config.def.h @@ -44,7 +44,7 @@ static const char *const autostart[] = { "xfce4-power-manager", NULL, // XFCE4 Power Manager // Background Processes "bash", "/home/sravan/.config/picom/toggle_picom.sh", NULL, // Picom Compositor - "deadd-notification-center", NULL, // Deadd Notification Center + "bash", "/home/sravan/.config/dunst/launch_dunst.sh", NULL, // Dunst Notification Daemon "greenclip", "daemon", NULL, // Greenclip Clipboard Manager "redshift", "-x", NULL, // Reset redshift display gamma "redshift-gtk", NULL, // Redshift Blue Light Filter @@ -123,8 +123,10 @@ static const char *playernextcmd[] = { "playerctl", "--player=playerctld", "ne static const char *playerprevcmd[] = { "playerctl", "--player=playerctld", "previous", NULL }; static const char *playershiftcmd[] = { "playerctld", "shift", NULL}; static const char *flameshotcmd[] = { "flameshot", "gui", NULL }; -static const char *noticentercmd[] = { "/bin/bash", "/home/sravan/.config/deadd/open-notification-center.sh", NULL }; -static const char *notitogglecmd[] = { "/bin/bash", "/home/sravan/.config/deadd/deadd-notification-toggle.sh", NULL }; +static const char *notifycontextcmd[] = { "dunstctl", "context", NULL }; +static const char *notifyhistorycmd[] = { "dunstctl", "history-pop", NULL }; +static const char *notifyclosecmd[] = { "dunstctl", "close", NULL }; +static const char *notifytogglecmd[] = { "dunstctl", "set-paused", "toggle", NULL }; static const char *compositortogglecmd[] = { "/bin/bash", "/home/sravan/.config/picom/toggle_picom.sh", NULL, }; /* @@ -160,8 +162,10 @@ static Key keys[] = { { MODKEY|ControlMask|ShiftMask, XK_l, spawn, {.v = lockcmd} }, { MODKEY|ControlMask|ShiftMask, XK_s, spawn, {.v = sleepcmd} }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd} }, - { MODKEY, XK_n, spawn, {.v = noticentercmd} }, - { MODKEY|ShiftMask, XK_n, spawn, {.v = notitogglecmd} }, + { MODKEY, XK_n, spawn, {.v = notifycontextcmd} }, + { MODKEY|ShiftMask, XK_n, spawn, {.v = notifyhistorycmd} }, + { MODKEY|ControlMask, XK_n, spawn, {.v = notifyclosecmd} }, + { MODKEY|ControlMask|ShiftMask, XK_n, spawn, {.v = notifytogglecmd} }, { MODKEY|ControlMask|ShiftMask, XK_Escape, spawn, {.v = compositortogglecmd} }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } },