diff options
| author | Douglas Rumbaugh <dbr4@psu.edu> | 2022-03-01 13:03:36 -0500 |
|---|---|---|
| committer | Douglas Rumbaugh <dbr4@psu.edu> | 2022-03-01 13:03:36 -0500 |
| commit | 7e6c8d06024a0ca79589be00db4eff5d0474db9d (patch) | |
| tree | 1d1c82e054098ef4850cf3e6387ba4b65c814891 /config.def.h | |
| parent | 22a161c48a50b739ca886b90ed409d4a894afc9a (diff) | |
| download | dwm-7e6c8d06024a0ca79589be00db4eff5d0474db9d.tar.gz | |
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.
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 2 |
1 files changed, 1 insertions, 1 deletions
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("")}, |