summaryrefslogtreecommitdiffstats
path: root/laptop/.bin/import
blob: ea4f1f2937e2f9c664fa247638fbdd15b2484e44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

services=""
trap 'for service in $services; do systemctl --user start $service; done' EXIT
for service in unclutter picom; do
    if [ "$(systemctl --user show --property MainPID --value "$service")" != 0 ]; then
        systemctl --user stop "$service"
        services="$service $services"
    fi
done
/usr/bin/import "$@"