From 350f7cb9b2406ba25d02ca353cdcb3ba56e3253a Mon Sep 17 00:00:00 2001 From: AlexBocken Date: Fri, 9 Dec 2022 15:53:21 +0100 Subject: [PATCH] fix compositor crash on 2nd attempt of starting calcurse --- config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.h b/config.h index 4b49298..2639428 100644 --- a/config.h +++ b/config.h @@ -208,11 +208,11 @@ static Key keys[] = { { MODKEY, XK_x, spawn, SHCMD("slock & ( sleep 4; xset dpms force off; mpc pause ; pauseallmpv)") }, { MODKEY|ShiftMask, XK_x, spawn, SHCMD("prompt \"Shutdown computer?\" \"sudo -A shutdown -h now\"") }, { MODKEY, XK_c, togglescratch, {.ui = 1 } }, - { MODKEY|ShiftMask, XK_c, spawn, SHCMD("st -e calcurse; pkill -RTMIN+8 dwmblocks")}, + { MODKEY|ShiftMask, XK_c, spawn, SHCMD("pgrep calcurse || st -e calcurse; pkill -RTMIN+8 dwmblocks")}, { MODKEY, XK_v, spawn, SHCMD("st -e $EDITOR -c \"VimwikiIndex\"") }, { MODKEY|ShiftMask, XK_v, setfloating, { .i=True} }, { MODKEY|ShiftMask, XK_v, setsticky, {.i=True} }, - { ControlMask|ShiftMask, XK_v, spawn, SHCMD("xdotool type $(xclip -o)")}, + { ControlMask|ShiftMask, XK_v, spawn, SHCMD("xclip -selection 'primary' -o | xvkbd -xsendevent -file -")}, { MODKEY|ShiftMask, XK_v, spawn, SHCMD("hover left") }, { MODKEY, XK_b, spawn, SHCMD("bt") }, { MODKEY|ShiftMask, XK_b, togglebar, {0} },