diff --git a/scripts/systemd-run-i3 b/scripts/systemd-run-i3 index 1b74d7a..6b8a4d3 100755 --- a/scripts/systemd-run-i3 +++ b/scripts/systemd-run-i3 @@ -1,5 +1,6 @@ #!/bin/bash -e +slice=app rand=$(tr -dc 'a-f0-9' < /dev/urandom | head -c 8) args=() @@ -16,14 +17,11 @@ do case "$opt" in done shift $((OPTIND-1)) -if [ -z "$slice" ]; then - slice=app -fi - exec systemd-run \ --user \ --collect \ --slice="$slice" \ --unit="$slice-$1-$rand" \ --property=BindsTo=graphical-session.target \ - ${args[@]} -- "$@" + --property=ExitType=cgroup \ + "${args[@]}" -- "$@"