From 3a8def9e6081b2b175779cfa7a95386362a1dcab Mon Sep 17 00:00:00 2001 From: BluishHumility Date: Wed, 16 Oct 2024 20:54:55 -0400 Subject: [PATCH] feat(user_commands.bash): add check for nvidia-inst --- setup_sway_isomode.bash | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/setup_sway_isomode.bash b/setup_sway_isomode.bash index 159dbfb..0c73ef5 100644 --- a/setup_sway_isomode.bash +++ b/setup_sway_isomode.bash @@ -5,6 +5,13 @@ username="$1" echo "Cloning the EOS Community Sway repo..." git clone https://github.com/EndeavourOS-Community-Editions/sway.git +# Check if nvidia-inst is installed +if pacman -Qq nvidia-inst 2>/dev/null | grep -q .; then + # If it is, do the Nvidia stuff +# some Nvidia stuff +# some other Nvidia stuff +fi + # Install the custom package list echo "Installing needed packages..." pacman -S --noconfirm --noprogressbar --needed --disable-download-timeout $(< ./sway/packages-repository.txt)