From 43ac25f908f58f62a8b9ba576edd4c932800d3e3 Mon Sep 17 00:00:00 2001 From: Gerald Pinder <4626052+gmpinder@users.noreply.github.com> Date: Thu, 16 May 2024 17:31:28 -0400 Subject: [PATCH] Add justfile --- justfile | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 justfile diff --git a/justfile b/justfile new file mode 100644 index 0000000..88375d2 --- /dev/null +++ b/justfile @@ -0,0 +1,83 @@ +alias nvidia := configure-nvidia + +# Configure the Nvidia driver +configure-nvidia ACTION="prompt": + #!/usr/bin/bash + source /usr/lib/ujust/ujust.sh + OPTION={{ ACTION }} + if [ "$OPTION" == "prompt" ]; then + echo "${bold}Configuring Nvidia drivers${normal}" + echo 'What would you like to do?' + OPTION=$(ugum choose "Set needed kernel arguments" "Remove kernel arguments" "Test CUDA support" "Enable Nvidia VAAPI in Firefox Flatpak") + elif [ "$OPTION" == "help" ]; then + echo "Usage: ujust configure-nvidia