From 3f274253ffd95d5045b8f1bea58bdf32d18a8c6e Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Tue, 18 Aug 2020 13:17:55 +0100 Subject: [PATCH] scripts/systemd-run-i3: bind applications to graphical session When the graphical-session target exits, this should terminal all units bound to it. Signed-off-by: Joe Groocock --- scripts/systemd-run-i3 | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/systemd-run-i3 b/scripts/systemd-run-i3 index 3d9d214..1b74d7a 100755 --- a/scripts/systemd-run-i3 +++ b/scripts/systemd-run-i3 @@ -25,4 +25,5 @@ exec systemd-run \ --collect \ --slice="$slice" \ --unit="$slice-$1-$rand" \ + --property=BindsTo=graphical-session.target \ ${args[@]} -- "$@"