Edit setup
This commit is contained in:
@@ -360,7 +360,7 @@ expand-right = true
|
|||||||
format-spacing = 1
|
format-spacing = 1
|
||||||
|
|
||||||
label-open =
|
label-open =
|
||||||
label-open-foreground = ${colors.alert}
|
label-open-foreground = ${colors.icon-c1}
|
||||||
label-close =
|
label-close =
|
||||||
label-close-foreground = ${colors.icon-c1}
|
label-close-foreground = ${colors.icon-c1}
|
||||||
label-separator = " "
|
label-separator = " "
|
||||||
|
|||||||
@@ -1,33 +1,45 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
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")
|
HEIGHT=15
|
||||||
select smenuc in "${smenu[@]}"; do
|
WIDTH=40
|
||||||
case $smenuc in
|
CHOICE_HEIGHT=4
|
||||||
"1")
|
BACKTITLE="Martin BSPwm DTE - The last step of the installation"
|
||||||
|
TITLE="The last step of the installation"
|
||||||
|
MENU="Choose one of the following options:"
|
||||||
|
|
||||||
|
OPTIONS=(1 "Install AMD Driver"
|
||||||
|
2 "Install AMD Driver + NVIDIA"
|
||||||
|
3 "Install Intel Driver"
|
||||||
|
4 "Install Intel + NVIDIA Driver"
|
||||||
|
5 "Virtual Machine - Copy New SUPER KEY to ALT KEY"
|
||||||
|
6 "Reboot")
|
||||||
|
|
||||||
|
CHOICE=$(dialog --clear \
|
||||||
|
--backtitle "$BACKTITLE" \
|
||||||
|
--title "$TITLE" \
|
||||||
|
--menu "$MENU" \
|
||||||
|
$HEIGHT $WIDTH $CHOICE_HEIGHT \
|
||||||
|
"${OPTIONS[@]}" \
|
||||||
|
2>&1 >/dev/tty)
|
||||||
|
|
||||||
|
clear
|
||||||
|
case $CHOICE in
|
||||||
|
1)
|
||||||
sudo apt install -y amd64-microcode
|
sudo apt install -y amd64-microcode
|
||||||
# optionally call a function or run some code here
|
|
||||||
;;
|
;;
|
||||||
"2")
|
2)
|
||||||
sudo apt install -y amd64-microcode nvidia-detect nvidia-driver
|
sudo apt install -y amd64-microcode nvidia-detect nvidia-driver
|
||||||
# optionally call a function or run some code here
|
|
||||||
;;
|
;;
|
||||||
"3")
|
3)
|
||||||
sudo apt install -y intel-microcode
|
sudo apt install -y intel-microcode
|
||||||
# optionally call a function or run some code here
|
|
||||||
;;
|
;;
|
||||||
"4")
|
4)
|
||||||
sudo apt install -y intel-microcode nvidia-detect nvidia-driver
|
sudo apt install -y intel-microcode nvidia-detect nvidia-driver
|
||||||
# optionally call a function or run some code here
|
|
||||||
;;
|
;;
|
||||||
"5")
|
5)
|
||||||
. ~/bspwm-install-ma-dte/copy-vm-keys.sh
|
. ~/bspwm-install-ma-dte/copy-vm-keys.sh
|
||||||
;;
|
;;
|
||||||
"6")
|
6)
|
||||||
sudo reboot
|
sudo reboot
|
||||||
;;
|
;;
|
||||||
"7")
|
|
||||||
exit
|
|
||||||
;;
|
|
||||||
*) echo "Invalid option. $REPLY";;
|
|
||||||
esac
|
esac
|
||||||
done
|
|
||||||
Reference in New Issue
Block a user