arch 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #!/bin/bash
  2. # while-menu-dialog: a menu driven system information program
  3. DIALOG_CANCEL=1
  4. DIALOG_ESC=255
  5. HEIGHT=0
  6. WIDTH=0
  7. display_result() {
  8. dialog --title "$1" \
  9. --no-collapse \
  10. --msgbox "$result" 0 0
  11. }
  12. while true; do
  13. exec 3>&1
  14. selection=$(dialog \
  15. --backtitle "Arch installer v1.1" \
  16. --title "Menu" \
  17. --clear \
  18. --cancel-label "Exit" \
  19. --menu "Please select:" $HEIGHT $WIDTH 4 \
  20. "1" "Inspect" \
  21. "2" "Update" \
  22. "3" "Install" \
  23. "4" "AUR" \
  24. 2>&1 1>&3)
  25. exit_status=$?
  26. exec 3>&-
  27. case $exit_status in
  28. $DIALOG_CANCEL)
  29. clear
  30. echo "Program terminated."
  31. exit
  32. ;;
  33. $DIALOG_ESC)
  34. clear
  35. echo "Program aborted." >&2
  36. exit 1
  37. ;;
  38. esac
  39. case $selection in
  40. 1 )
  41. vim arch
  42. ;;
  43. 2 )
  44. sudo pacman -Syu
  45. ;;
  46. 3 )
  47. sudo pacman -Sy abiword acpi alsa-tools alsa-utils arc-gtk-theme bash-completion bc btop cmus curl dunst dvtm ethtool feh firefox flashrom github-cli gnumeric gufw htop inxi jgmenu lxappearance lxappearance-obconf menumaker mpv ncspot neofetch network-manager-applet nextcloud-client obconf openbox papirus-icon-theme pcmanfm picom pulseaudio pulseaudio-alsa python-pip ranger redshift rofi rust scribus scrot slim slim-themes smartmontools sxhkd thunderbird tint2 tlp tlp-rdw ttf-nerd-fonts-symbols ttf-jetbrains-mono ueberzug ufw unzip usbutils util-linux vifm vim volumeicon wget xautolock xdg-user-dirs xdg-user-dirs-gtk xdg-utils xf86-input-synaptics xorg xorg-xinit xorg-xcalc xterm yubioath-desktop zathura-pdf-poppler zsh
  48. ;;
  49. 4 )
  50. cd ~/
  51. git clone https://aur.archlinux.org/yay
  52. cd yay
  53. makepkg -si
  54. yay -S abook bitwarden epson-inkjet-printer-escpr epsonscan2 epsonscan2-non-free-plugin minitube mullvad-vpn-cli ncspot onlykey steam udiskie transset-df
  55. ;;
  56. esac
  57. done