From aae01bff200e8cbe9a2efdc4644c44b2bd0bcfb2 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Wed, 4 Oct 2023 13:39:35 -0400 Subject: [PATCH] Make sure any remind process is terminated before restarting i3. This prevents multiples of notifications from happening from multiple instances of the server. --- i38.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i38.sh b/i38.sh index 27859b0..96853b2 100755 --- a/i38.sh +++ b/i38.sh @@ -594,7 +594,7 @@ bindsym Shift+o exec $(command -v orca) --replace, mode "default" # reload the configuration file bindsym Control+semicolon exec bash -c '$i3msg -t run_command reload && spd-say -P important -Cw "I38 Configuration reloaded."', mode "default" # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) -bindsym Control+Shift+semicolon exec bash -c '$i3msg -t run_command restart && spd-say -P important -Cw "I3 restarted."', mode "default" +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" # Run dialog with exclamation bindsym Shift+exclam exec ${i3Path}/scripts/run_dialog.sh, mode "default" # exit i3 (logs you out of your X session)