summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-03-17 01:59:00 -0400
committerJesse Luehrs <doy@tozt.net>2021-03-17 01:59:00 -0400
commitc98c8ae0ab701dfeb4cd87fc5bff99a0fa3d1cca (patch)
tree01f2c2dc06808c098ee1f2a197b407f620c53ce9
parentb74cc7b375643f696de44a37a505553a22786106 (diff)
downloadconf-c98c8ae0ab701dfeb4cd87fc5bff99a0fa3d1cca.tar.gz
conf-c98c8ae0ab701dfeb4cd87fc5bff99a0fa3d1cca.zip
also disable compton for import
-rwxr-xr-xbin/hornet/import11
1 files 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 "$@"