From 9363f327dd2fa06cd2284adde3dfb426ee321e53 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Mon, 12 Jun 2023 14:54:31 -0400 Subject: [PATCH] [dwm] config.def.h: fix popup window rule --- suckless/dwm/config.def.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/suckless/dwm/config.def.h b/suckless/dwm/config.def.h index 1332959..8c30a14 100644 --- a/suckless/dwm/config.def.h +++ b/suckless/dwm/config.def.h @@ -48,9 +48,10 @@ static const Rule rules[] = { * WM_CLASS(STRING) = instance, class * WM_NAME(STRING) = title */ - /* class instance title tags mask isfloating isterminal noswallow monitor swalresize */ - { NULL, NULL, "st", 0, 0, 1, 1, -1, 0}, - { "mpv", NULL, NULL, 0, 0, 0, 0, -1, 1}, /* mpv */ + /* class instance title tags mask isfloating isterminal noswallow monitor swalresize */ + { NULL, NULL, "st", 0, 0, 1, 1, -1, 0}, + { "popup-bottom-center",NULL, NULL, 0, 1, 1, 1, -1, 0}, + { "mpv", NULL, NULL, 0, 0, 0, 0, -1, 1}, /* mpv */ }; /* layout(s) */ @@ -119,7 +120,8 @@ static const Key keys[] = { { 0, XK_Print, spawn, SHCMD("~/.local/bin/deskutils/screenshot.sh") }, { ShiftMask, XK_Print, spawn, SHCMD("~/.local/bin/deskutils/screenshot-save.sh" ) }, { MODKEY, XK_z, spawn, TERMCMD("bookmk") }, - { MODKEY|ShiftMask, XK_z, spawn, TERMCMD("clipedit.sh") }, + // SHCMD because we already start a terminal from inside clipedit.sh + { MODKEY|ShiftMask, XK_z, spawn, SHCMD("clipedit.sh") }, { 0, XF86XK_AudioStop, spawn, {.v = stopcmd } }, { 0, XF86XK_AudioNext, spawn, {.v = next } }, { 0, XF86XK_AudioPrev, spawn, {.v = prev } },