Howdy Dianne,

That's easy enough to do. I just added it to the restart key:

# restart i3 inplace (preserves your layout/session, can be used to
upgrade i3)
bindsym Control+Shift+semicolon exec bash -c 'pgrep remind && killall
remind;$i3msg -t run_command restart && spd-say -P important -Cw "I3
restarted."', mode "default"

Thanks,
Storm
On Wed, Oct 04, 2023 at 01:30:44PM -0400, Remind Fans wrote:
On Wed, 4 Oct 2023 13:12:39 -0400
Storm Dragon via Remind-fans <[email protected]> wrote:

Would it be possible to get a --replace flag for the server mode, so
that if it is launched and finds a running instance it will replace
it?

No, because you can't duplicate the running server's standard
input/output/error streams, so the new server won't be an exact
replacement.

My recommendation is to wrap Remind in a little script that kills of any
running Remind processes before starting a new one, and have i3 invoke
that script instead of invoking Remind directly.

Regards,

Dianne.



_______________________________________________
Remind-fans mailing list
[email protected]
https://dianne.skoll.ca/mailman/listinfo/remind-fans
Remind is at https://dianne.skoll.ca/projects/remind/


--
⛈🐲
Accessible low cost computers for everyone! https://stormux.org
Stormux Code Repository: https://git.stormux.org/storm/stormux
                         https://git.stormux.org/storm/configure-stormux
Stormux Shop: https://stormux.org/shop/
Get my public PGP key: gpg --recv-key 43DDC193
Algorithm: Word used by programmers when they don�t want to explain what they 
did.

Support Stormux: https://ko-fi.com/stormux

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Remind-fans mailing list
[email protected]
https://dianne.skoll.ca/mailman/listinfo/remind-fans
Remind is at https://dianne.skoll.ca/projects/remind/

Reply via email to