1
0
Fork 0
mirror of synced 2024-11-22 10:05:37 -05:00

Push first GUI changes of Upgrade2Ultimate

This commit is contained in:
Nico Jensch 2020-11-12 13:31:48 +01:00
parent bb2953cd51
commit 008614d12a
6 changed files with 295 additions and 121 deletions

View file

@ -14,20 +14,27 @@ function upgrade2ultimate
mkdir -p /tmp/setup-assistant mkdir -p /tmp/setup-assistant
clear clear
echo "We are going to ask you several questions so you can decide if you want a piece of software or not." if ! yad \
echo "Do you need asian font support? (y,n)" --image='font-manager' \
echo "" --title="Upgrade to ULTIMATE 👾" \
read asian --geometry=700x100 \
if [ $asian = "y" ]; then --button=No:0 \
--button=Yes:1 \
--text-align=center \
--center \
--text "Do you need asian font support?"; then
echo "garuda-asian" >> /tmp/setup-assistant/pkgs.txt echo "garuda-asian" >> /tmp/setup-assistant/pkgs.txt
fi fi
clear if ! yad \
echo "What about Snaps, Flatpak & Appimage support? (y,n)" --image='AppImageLauncher' \
echo "This enables you to use software not available in our repos." --title="Upgrade to ULTIMATE 👾" \
echo "If an application is available we advise to use the native version!" --geometry=700x100 \
read snap --button=No:0 \
if [ $snap = "y" ]; then --button=Yes:1 \
--text-align=center \
--center \
--text "What about Snaps, Flatpak and Appimage support?"; then
echo "sudo pacman -R pamac-aur pamac-tray-appindicator" >> /tmp/setup-assistant/prepare.sh echo "sudo pacman -R pamac-aur pamac-tray-appindicator" >> /tmp/setup-assistant/prepare.sh
echo "pamac-all echo "pamac-all
appimagelauncher appimagelauncher
@ -39,129 +46,220 @@ function upgrade2ultimate
echo "sudo systemctl enable --now snapd.socket" >> /tmp/setup-assistant/setup.sh echo "sudo systemctl enable --now snapd.socket" >> /tmp/setup-assistant/setup.sh
echo "sudo systemctl enable --now apparmor.service" >> /tmp/setup-assistant/setup.sh echo "sudo systemctl enable --now apparmor.service" >> /tmp/setup-assistant/setup.sh
echo "sudo systemctl enable --now snapd.apparmor.service" >> /tmp/setup-assistant/setup.sh echo "sudo systemctl enable --now snapd.apparmor.service" >> /tmp/setup-assistant/setup.sh
fi fi
clear
echo "Do you need gaming applications installed? 🎮 (y,n)" if ! yad \
echo "This will install the Garuda Gamer app in which every component needed to game can be enabled." --image='pattern-games' \
echo "" --title="Upgrade to ULTIMATE 👾" \
read gaming --geometry=700x100 \
if [ $gaming = "y" ]; then --button=No:0 \
--button=Yes:1 \
--text-align=center \
--center \
--text "Are you a gamer? The Garuda Gamer app will be installed for further configuration."; then
echo "garuda-gamer" >> /tmp/setup-assistant/pkgs.txt echo "garuda-gamer" >> /tmp/setup-assistant/pkgs.txt
echo "systemctl --user enable --now gamemoded >/dev/null 2>&1 &" >> /tmp/setup-assistant/setup.sh echo "systemctl --user enable --now gamemoded >/dev/null 2>&1 &" >> /tmp/setup-assistant/setup.sh
echo "sudo setup_dxvk install 2>&1 &" >> /tmp/setup-assistant/setup.sh echo "sudo setup_dxvk install 2>&1 &" >> /tmp/setup-assistant/setup.sh
fi fi
clear
echo "What about complete audio support? (y,n)" yad \
echo "Saying yes will install PulseAudio, Alsa & Pipewire packages with its companion apps." --image='org.pulseaudio.pavucontrol' \
echo "" --title="Upgrade to ULTIMATE 👾" \
read audio --text "We have metapkgs for these audio systems:" \
if [ $audio = "y" ]; then --geometry=600x400 \
echo "garuda-alsa --list \
garuda-pulse --checklist \
garuda-pipewire --column=Install \
--column=Software \
--center < /usr/lib/setup-assistant/audio.txt > /tmp/setup-assistant/audio.txt
if grep -R "PulseAudio" /tmp/setup-assistant/audio.txt; then
echo "garuda-pulse
pulseaudio-ctl pulseaudio-ctl
playerctl" >> /tmp/setup-assistant/pkgs.txt playerctl" >> /tmp/setup-assistant/pkgs.txt
echo "sudo systemctl enable --now bluetooth-autoconnect" >> /tmp/setup-assistant/setup.sh echo "sudo systemctl enable --now bluetooth-autoconnect" >> /tmp/setup-assistant/setup.sh
echo "systemctl enable pulseaudio-bluetooth-autoconnect --user" >> /tmp/setup-assistant/setup.sh echo "systemctl enable pulseaudio-bluetooth-autoconnect --user" >> /tmp/setup-assistant/setup.sh
fi fi
if grep -R "Alsa" /tmp/setup-assistant/audio.txt; then
clear echo "garuda-alsa" >> /tmp/setup-assistant/pkgs.txt
echo "Are you printing and scanning with this machine? 🖨" fi
echo "Also, do you need Samba support? (y,n)" if grep -R "Pipewire" /tmp/setup-assistant/audio.txt; then
echo "" echo "garuda-pipewire" >> /tmp/setup-assistant/pkgs.txt
read gaming
if [ $gaming = "y" ]; then
echo "garuda-settings-samba
system-config-samba
garuda-printer
garuda-scanner" >> /tmp/setup-assistant/pkgs.txt
fi fi
: office-selection
clear yad \
echo "Now you are free to choose your favorite office suite." --image='cupsprinter' \
echo "There are quite a lot of them to choose from. A guideline for new users:" --title="Upgrade to ULTIMATE 👾" \
echo "LibreOffice is the most used and complete office application in the Linux world." --text "We have metapkgs for these audio systems:" \
echo "If a simpler word processor is fine for you Abiword might also be a good choice." --geometry=600x400 \
echo "" --list \
echo "1) LibreOffice" --checklist \
echo "2) Onlyoffice" --column=Install \
echo "3) WPS Office" --column=Software \
echo "4) Free Office" --center < /usr/lib/setup-assistant/printing.txt > /tmp/setup-assistant/printing.txt
echo "5) Yozo Office"
echo "6) Calligra Office" if grep -R "Printing" /tmp/setup-assistant/printing.txt; then
echo "7) Abiword" echo "garuda-printer" >> /tmp/setup-assistant/pkgs.txt
echo "" fi
echo "Who needs office anyway? (n)" if grep -R "Scanning" /tmp/setup-assistant/printing.txt; then
read office echo "garuda-scanner" >> /tmp/setup-assistant/pkgs.txt
if [ $office = "1" ]; then fi
if grep -R "Samba" /tmp/setup-assistant/printing.txt; then
echo "garuda-settings-samba
system-config-samba" >> /tmp/setup-assistant/pkgs.txt
fi
yad \
--image='libreoffice-main' \
--title="Upgrade to ULTIMATE 👾" \
--text "There are a lot of office suites to choose from!" \
--geometry=600x400 \
--list \
--checklist \
--column=Install \
--column=Office \
--center < /usr/lib/setup-assistant/office.txt > /tmp/setup-assistant/office.txt
if grep -R "LibreOffice Fresh" /tmp/setup-assistant/office.txt; then
echo "libreoffice-fresh echo "libreoffice-fresh
libmythes" >> /tmp/setup-assistant/pkgs.txt libmythes" >> /tmp/setup-assistant/pkgs.txt
elif [ $office = "2" ]; then fi
if grep -R "LibreOffice Still" /tmp/setup-assistant/office.txt; then
echo "libreoffice-still
libmythes" >> /tmp/setup-assistant/pkgs.txt
fi
if grep -R "OnlyOffice" /tmp/setup-assistant/office.txt; then
echo "onlyoffice-bin" >> /tmp/setup-assistant/pkgs.txt echo "onlyoffice-bin" >> /tmp/setup-assistant/pkgs.txt
elif [ $office = "3" ]; then fi
if grep -R "WPS Office" /tmp/setup-assistant/office.txt; then
echo "wps-office echo "wps-office
wps-office-mime wps-office-mime
ttf-wps-fonts" >> /tmp/setup-assistant/pkgs.txt ttf-wps-fonts" >> /tmp/setup-assistant/pkgs.txt
elif [ $office = "4" ]; then fi
if grep -R "Free Office" /tmp/setup-assistant/office.txt; then
echo "freeoffice" >> /tmp/setup-assistant/pkgs.txt echo "freeoffice" >> /tmp/setup-assistant/pkgs.txt
elif [ $office = "5" ]; then fi
if grep -R "Yozo Office" /tmp/setup-assistant/office.txt; then
echo "yozo-office echo "yozo-office
yozo-office-fonts" >> /tmp/setup-assistant/pkgs.txt yozo-office-fonts" >> /tmp/setup-assistant/pkgs.txt
elif [ $office = "6" ]; then fi
if grep -R "Calligra Office" /tmp/setup-assistant/office.txt; then
echo "calligra" >> /tmp/setup-assistant/pkgs.txt echo "calligra" >> /tmp/setup-assistant/pkgs.txt
elif [ $office = "7" ]; then fi
if grep -R "Abiword" /tmp/setup-assistant/office.txt; then
echo "abiword" >> /tmp/setup-assistant/pkgs.txt echo "abiword" >> /tmp/setup-assistant/pkgs.txt
elif [ $office = "n" ]; then
echo "nooffice" >/dev/null 2>&1 &
else echo "Thats not a valid choice! ❌"
goto "office-selection"
fi fi
clear yad \
echo "This question is about general desktop applications. ☁️" --image='telegram-desktop' \
echo "It contains apps such as Telegram, Nextcloud-client & Syncthing." --title="Upgrade to ULTIMATE 👾" \
echo "Are these going to be installed? (y,n)" --text "Here are some desktop apps that might be useful to you:" \
read general --geometry=600x400 \
if [ $general = "y" ]; then --list \
echo "telegram-desktop --checklist \
joplin --column=Install \
murmur --column=Applications \
mumble --center < /usr/lib/setup-assistant/desktop-apps.txt > /tmp/setup-assistant/desktop-apps.txt
discord
streamlink-twitch-gui if grep -R "Telegram" /tmp/setup-assistant/desktop-apps.txt; then
syncthing-gtk echo "telegram-desktop" >> /tmp/setup-assistant/pkgs.txt
nextcloud-client fi
firefox-extension-bitwarden if grep -R "Joplin" /tmp/setup-assistant/desktop-apps.txt; then
fractal echo "joplin" >> /tmp/setup-assistant/pkgs.txt
firefox-extension-xdm-browser-monitor" >> /tmp/setup-assistant/pkgs.txt fi
if grep -R "Murmur" /tmp/setup-assistant/desktop-apps.txt; then
echo "murmur" >> /tmp/setup-assistant/pkgs.txt
fi
if grep -R "Discord" /tmp/setup-assistant/desktop-apps.txt; then
echo "discord" >> /tmp/setup-assistant/pkgs.txt
fi
if grep -R "Twitch GUI" /tmp/setup-assistant/desktop-apps.txt; then
echo "streamlink-twitch-gui" >> /tmp/setup-assistant/pkgs.txt
fi
if grep -R "Syncthing-GTK" /tmp/setup-assistant/desktop-apps.txt; then
echo "syncthing-gtk" >> /tmp/setup-assistant/pkgs.txt
fi
if grep -R "Nextcloud-client" /tmp/setup-assistant/desktop-apps.txt; then
echo "nextcloud-client" >> /tmp/setup-assistant/pkgs.txt
fi
if grep -R "Firefox Bitwarden" /tmp/setup-assistant/desktop-apps.txt; then
echo "firefox-extension-bitwarden" >> /tmp/setup-assistant/pkgs.txt
fi
if grep -R "Firefox XDM" /tmp/setup-assistant/desktop-apps.txt; then
echo "firefox-extension-xdm-browser-monitor" >> /tmp/setup-assistant/pkgs.txt
fi
if grep -R "Fractal" /tmp/setup-assistant/desktop-apps.txt; then
echo "fractal" >> /tmp/setup-assistant/pkgs.txt
fi fi
: virt-selection
clear
echo "Are you rather a fan of virtualbox or virt-manager? 💻" yad \
echo "" --image='gimp' \
echo "1) Virtualbox all the way!" --title="Upgrade to ULTIMATE 👾" \
echo "2) Id rather choose Virt-manager." --text "What about multimedia software?" \
echo "" --geometry=600x400 \
echo "I dont need virtualisation software! (n)" --list \
read virt --checklist \
if [ $virt = "1" ]; then --column=Install \
--column=Applications \
--center < /usr/lib/setup-assistant/multimedia.txt >> /tmp/setup-assistant/multimedia.txt
if grep -R "Converseen" /tmp/setup-assistant/multimedia.txt; then
echo "converseen" >> /tmp/setup-assistant/pkgs.txt
fi
if grep -R "Transmageddon" /tmp/setup-assistant/multimedia.txt; then
echo "transmageddon" >> /tmp/setup-assistant/pkgs.txt
fi
if grep -R "Soundconverter" /tmp/setup-assistant/multimedia.txt; then
echo "soundconverter" >> /tmp/setup-assistant/pkgs.txt
fi
if grep -R "Piviti" /tmp/setup-assistant/multimedia.txt; then
echo "piviti" >> /tmp/setup-assistant/pkgs.txt
fi
if grep -R "Kdenlive" /tmp/setup-assistant/multimedia.txt; then
echo "kdenlive" >> /tmp/setup-assistant/pkgs.txt
fi
if grep -R "Audacity" /tmp/setup-assistant/multimedia.txt; then
echo "audacity" >> /tmp/setup-assistant/pkgs.txt
fi
if grep -R "Easytag" /tmp/setup-assistant/multimedia.txt; then
echo "easytag" >> /tmp/setup-assistant/pkgs.txt
fi
if grep -R "GIMP" /tmp/setup-assistant/multimedia.txt; then
echo "gimp" >> /tmp/setup-assistant/pkgs.txt
fi
if grep -R "Inkscape" /tmp/setup-assistant/multimedia.txt; then
echo "inkscape" >> /tmp/setup-assistant/pkgs.txt
fi
if grep -R "Blender" /tmp/setup-assistant/multimedia.txt; then
echo "blender" >> /tmp/setup-assistant/pkgs.txt
fi
if grep -R "Gcolor3" /tmp/setup-assistant/multimedia.txt; then
echo "gcolor3" >> /tmp/setup-assistant/pkgs.txt
fi
yad \
--image='virtualbox' \
--title="Upgrade to ULTIMATE 👾" \
--text "Are you rather a fan of Virtualbox or virt-manager?" \
--geometry=600x400 \
--list \
--checklist \
--column=Install \
--column=Applications \
--center < /usr/lib/setup-assistant/virtualisation.txt >> /tmp/setup-assistant/virtualisation.txt
if grep -R "Virtalbox" /tmp/setup-assistant/virtualisation.txt; then
echo "garuda-virtualbox" >> /tmp/setup-assistant/pkgs.txt echo "garuda-virtualbox" >> /tmp/setup-assistant/pkgs.txt
echo "sudo usermod -aG vboxusers $USER" >> /tmp/setup-assistant/setup.sh
elif [ $virt = "2" ]; then
echo "garuda-virt-manager" >> /tmp/setup-assistant/pkgs.txt
echo "sudo systemctl enable --now libvirtd" >> /tmp/setup-assistant/setup.sh
echo "sudo usermod -aG libvirt $USER" >> /tmp/setup-assistant/setup.sh
echo "sudo usermod -aG kvm $USER" >> /tmp/setup-assistant/setup.sh
elif [ $virt = "n" ]; then
echo "novirt" >/dev/null 2>&1 &
else echo "Thats not a valid choice! ❌"
goto "virt-selection"
fi fi
if grep -R "Virt-manager" /tmp/setup-assistant/virtualisation.txt; then
echo "garuda-virt-manager" >> /tmp/setup-assistant/pkgs.txt
fi
clear clear
sh /tmp/setup-assistant/prepare.sh sh /tmp/setup-assistant/prepare.sh

View file

@ -0,0 +1,6 @@
true
PulseAudio (contains bluetooth autoconnect)
false
Alsa
false
Pipewire

View file

@ -0,0 +1,22 @@
true
Telegram Desktop
false
Joplin (note editor)
false
Murmur (Mumble Client)
false
Discord
false
Twitch GUI
true
Syncthing-GTK (sync files between devices)
true
Nextcloud-client (Use our Garuda Cloud to sync dotfiles)
true
Firefox Bitwarden extension (password manager)
false
Firefox XDM extension (download manager)
false
Fractal (Matrix client)
false
None of them

View file

@ -0,0 +1,24 @@
false
Converseen (Image converter)
false
Transmageddon (Video converter)
false
Soundconverter
false
Piviti (Video editor)
false
Kdenlive (Video editor)
false
Audacity (Audio editor)
false
Easytag (Audio tag editor)
false
GIMP
false
Inkscape
false
Blender
false
Gcolor3
false
No multimedia software

View file

@ -0,0 +1,18 @@
true
LibreOffice Fresh (Recommended, full featured office suite)
false
LibreOffice Still (The same than above, an older version)
false
OnlyOffice (Aims to be compatible with Microsoft Office)
false
WPS Office
false
Free Office
false
Yozo Office
false
Calligra Office
false
Abiword (Simple wordprocessor, recommended for simple writing)
false
No office (Who needs office anyway?)

View file

@ -0,0 +1,6 @@
false
Virtualbox (most likely easier for beginners)
false
Virt-manager
false
No virtualisation software