From e8555fe0b96333fd927939d89719c66999dfe138 Mon Sep 17 00:00:00 2001 From: ITmail-dk <48917593+ITmail-dk@users.noreply.github.com> Date: Mon, 3 Jan 2022 12:43:16 +0100 Subject: [PATCH] new setup --- bspwm-install-martin-dte-debian.sh | 2 +- setup-menu.sh | 26 ++++++++++++++++---------- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/bspwm-install-martin-dte-debian.sh b/bspwm-install-martin-dte-debian.sh index 5909811..230cef9 100644 --- a/bspwm-install-martin-dte-debian.sh +++ b/bspwm-install-martin-dte-debian.sh @@ -105,7 +105,7 @@ cd ~/bspwm-install-ma-dte/ #echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-" #. copy-vm-keys.sh -. setup-menu.sh +. ~/bspwm-install-ma-dte/setup-menu.sh # Clean up and delete folders and other installation files #cd ~ diff --git a/setup-menu.sh b/setup-menu.sh index 9f13bc9..edc4109 100644 --- a/setup-menu.sh +++ b/setup-menu.sh @@ -1,25 +1,31 @@ #!/bin/bash -PS3='Choose menu 1, 2, 3, Reboot, Exit.:' -smenu=("1" "2" "3" "Reboot" "Exit") -select smenu in "${smenuc[@]}"; do +PS3='Choose a menu option :' +smenu=("Install AMD Driver" "Install AMD Driver + NVIDIA" "Install Intel Driver" "Install Intel + NVIDIA Driver" "VM - Copy New SUPER KEY to ALT" "Reboot" "Exit") +select smenuc in "${smenu[@]}"; do case $smenuc in "1") - echo "Nr. 1" + sudo apt install -y amd64-microcode # optionally call a function or run some code here ;; "2") - echo "Nr. 2" + sudo apt install -y amd64-microcode nvidia-detect nvidia-driver # optionally call a function or run some code here ;; "3") - echo "VM Copy Keys..." - . copy-vm-keys.sh - break + sudo apt install -y intel-microcode + # optionally call a function or run some code here ;; - "Reboot") + "4") + sudo apt install -y intel-microcode nvidia-detect nvidia-driver + # optionally call a function or run some code here + ;; + "5") + . ~/bspwm-install-ma-dte/copy-vm-keys.sh + ;; + "6") sudo reboot ;; - "Quit") + "7") exit ;; *) echo "Invalid option. $REPLY";;