From c98c8ae0ab701dfeb4cd87fc5bff99a0fa3d1cca Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 17 Mar 2021 01:59:00 -0400 Subject: also disable compton for import --- bin/hornet/import | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/bin/hornet/import b/bin/hornet/import index 677f5cc..307d56b 100755 --- a/bin/hornet/import +++ b/bin/hornet/import @@ -1,7 +1,10 @@ #!/bin/sh -if svst unclutter; then - svdn unclutter > /dev/null - trap "svup unclutter > /dev/null" EXIT -fi +for service in unclutter compton; do + if svst $service; then + svdn $service >/dev/null + # shellcheck disable=SC2064 + trap "svup $service > /dev/null" EXIT + fi +done /usr/bin/import "$@" -- cgit v1.2.3