From 176bb602927eea49067eb5bbb5456d9aeaa15eee Mon Sep 17 00:00:00 2001 From: stormdragon2976 Date: Fri, 2 Dec 2022 15:21:19 -0500 Subject: [PATCH] Add a check for the python i3ipc library. --- i38.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/i38.sh b/i38.sh index e78dcd4..6203f31 100755 --- a/i38.sh +++ b/i38.sh @@ -14,6 +14,9 @@ for i in dialog grun jq sgtk-menu yad ; do missing+=("$i") fi done +if ! python3 -c 'import i3ipc' &> /dev/null ; then + missing+=("python-i3ipc") +fi if [[ -n "${missing}" ]]; then echo "Please install the following packages and run this script again:" echo "${missing[*]}"