From 7e6c8d06024a0ca79589be00db4eff5d0474db9d Mon Sep 17 00:00:00 2001 From: Douglas Rumbaugh Date: Tue, 1 Mar 2022 13:03:36 -0500 Subject: newsboat command: now kills newsboat first newsboat will only allow itself to have one instance running, so attempting to open a new newsboat instance while there is an existing newsboat process will result in failure. Ordinarily, this shouldn't be a problem. However sometimes newsboat remains running even after the window is closed, requiring it to be killed prior to opening a new one. This change causes the SUPER-F3 keybinding to use pkill to terminate any running newsboat process prior to launching a new one, and should prevent this situation from occurring. --- config.def.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.def.h b/config.def.h index e66c6df..aff5e5c 100644 --- a/config.def.h +++ b/config.def.h @@ -337,7 +337,7 @@ static Key keys[] = { { MODKEY, XK_Escape, spawn, SHCMD("lock")}, { MODKEY, XK_F1, spawn, SHCMD("qutebrowser")}, { MODKEY, XK_F2, spawn, SHCMD("kitty neomutt")}, - { MODKEY, XK_F3, spawn, SHCMD("kitty newsboat -u /home/douglas/.local/share/feeds -c /home/douglas/.cache/newsboat/cache -C /home/douglas/.config/newsboat/config")}, + { MODKEY, XK_F3, spawn, SHCMD("pkill newsboat; kitty newsboat -u /home/douglas/.local/share/feeds -c /home/douglas/.cache/newsboat/cache -C /home/douglas/.config/newsboat/config")}, { MODKEY, XK_F4, spawn, SHCMD("kitty khal interactive")}, { MODKEY, XK_F5, spawn, SHCMD("kitty weechat")}, { MODKEY, XK_F6, spawn, SHCMD("")}, -- cgit v1.2.3