2020-11-11 08:58:21 -05:00
|
|
|
#!/bin/bash
|
|
|
|
function upgrade2ultimate
|
|
|
|
{
|
|
|
|
rm -rf /tmp/setup-assistant
|
|
|
|
mkdir -p /tmp/setup-assistant
|
2020-10-27 08:02:51 -04:00
|
|
|
|
2020-11-11 08:58:21 -05:00
|
|
|
clear
|
2020-11-12 07:31:48 -05:00
|
|
|
if ! yad \
|
|
|
|
--image='font-manager' \
|
|
|
|
--title="Upgrade to ULTIMATE 👾" \
|
2020-11-12 08:10:38 -05:00
|
|
|
--window-icon='update' \
|
2020-11-12 07:31:48 -05:00
|
|
|
--geometry=700x100 \
|
|
|
|
--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
|
2020-11-11 08:58:21 -05:00
|
|
|
fi
|
|
|
|
|
2020-11-12 07:31:48 -05:00
|
|
|
if ! yad \
|
|
|
|
--image='AppImageLauncher' \
|
|
|
|
--title="Upgrade to ULTIMATE 👾" \
|
2020-11-12 08:10:38 -05:00
|
|
|
--window-icon='update' \
|
2020-11-12 07:31:48 -05:00
|
|
|
--geometry=700x100 \
|
|
|
|
--button=No:0 \
|
|
|
|
--button=Yes:1 \
|
|
|
|
--text-align=center \
|
|
|
|
--center \
|
2020-11-12 08:10:38 -05:00
|
|
|
--text "What about Snaps, Flatpak, Appimage and firmware update support?"; then
|
2020-11-12 07:31:48 -05:00
|
|
|
echo "sudo pacman -R pamac-aur pamac-tray-appindicator" >> /tmp/setup-assistant/prepare.sh
|
|
|
|
echo "pamac-all
|
|
|
|
appimagelauncher
|
|
|
|
fwupd
|
|
|
|
apparmor
|
|
|
|
snapd
|
|
|
|
snapd-glib
|
|
|
|
flatpak" >> /tmp/setup-assistant/pkgs.txt
|
2020-11-12 11:10:25 -05:00
|
|
|
echo "sudo systemctl enable --now snapd.socket" >> /tmp/setup-assistant/setup_root.sh
|
|
|
|
echo "sudo systemctl enable --now apparmor.service" >> /tmp/setup-assistant/setup_root.sh
|
|
|
|
echo "sudo systemctl enable --now snapd.apparmor.service" >> /tmp/setup-assistant/setup_root.sh
|
2020-11-12 07:31:48 -05:00
|
|
|
fi
|
2020-11-11 10:18:59 -05:00
|
|
|
|
2020-11-11 08:58:21 -05:00
|
|
|
|
2020-11-12 11:10:25 -05:00
|
|
|
if pacman -Qs plasma-desktop > /dev/null ; then
|
|
|
|
if ! yad \
|
|
|
|
--image='plasmashell' \
|
|
|
|
--title="Upgrade to ULTIMATE 👾" \
|
|
|
|
--window-icon='update' \
|
|
|
|
--geometry=700x100 \
|
|
|
|
--button=No:0 \
|
|
|
|
--button=Yes:1 \
|
|
|
|
--text-align=center \
|
|
|
|
--center \
|
|
|
|
--text "Do you want to install additional KDE applications?"; then
|
|
|
|
echo "elisa
|
|
|
|
khelpcenter
|
|
|
|
krdc
|
|
|
|
krfb
|
|
|
|
kompare
|
|
|
|
krita
|
|
|
|
krename
|
|
|
|
ksystemlog
|
|
|
|
kmouth
|
|
|
|
lokalize
|
|
|
|
kup
|
|
|
|
audiocd-kio
|
|
|
|
kmag
|
|
|
|
kimtoy
|
|
|
|
kleopatra
|
|
|
|
qt5-imageformats
|
|
|
|
kimageformats
|
|
|
|
vlc" >> /tmp/setup-assistant/pkgs.txt
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if pacman -Qs gnome-shell > /dev/null ; then
|
|
|
|
if ! yad \
|
|
|
|
--image='gnome-shell' \
|
|
|
|
--title="Upgrade to ULTIMATE 👾" \
|
|
|
|
--window-icon='update' \
|
|
|
|
--geometry=700x100 \
|
|
|
|
--button=No:0 \
|
|
|
|
--button=Yes:1 \
|
|
|
|
--text-align=center \
|
|
|
|
--center \
|
|
|
|
--text "Do you want to install additional GNOME applications?"; then
|
|
|
|
echo "gpaste
|
|
|
|
eog-plugins
|
|
|
|
grilo-plugins
|
|
|
|
seahorse-nautilus
|
|
|
|
gtkhash-nautilus
|
|
|
|
gnome-logs
|
|
|
|
gnome-remote-desktop
|
|
|
|
gnome-sound-recorder
|
|
|
|
vino
|
|
|
|
rygel
|
|
|
|
shotwell" >> /tmp/setup-assistant/pkgs.txt
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2020-11-12 07:31:48 -05:00
|
|
|
if ! yad \
|
|
|
|
--image='pattern-games' \
|
|
|
|
--title="Upgrade to ULTIMATE 👾" \
|
2020-11-12 08:10:38 -05:00
|
|
|
--window-icon='update' \
|
2020-11-12 07:31:48 -05:00
|
|
|
--geometry=700x100 \
|
|
|
|
--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
|
2020-11-12 11:10:25 -05:00
|
|
|
echo "systemctl --user enable --now gamemoded >/dev/null 2>&1 &" >> /tmp/setup-assistant/setup_user.sh
|
|
|
|
echo "sudo setup_dxvk install 2>&1 &" >> /tmp/setup-assistant/setup_root.sh
|
2020-11-12 07:31:48 -05:00
|
|
|
fi
|
2020-11-11 08:58:21 -05:00
|
|
|
|
2020-11-12 07:31:48 -05:00
|
|
|
|
|
|
|
yad \
|
|
|
|
--image='libreoffice-main' \
|
|
|
|
--title="Upgrade to ULTIMATE 👾" \
|
2020-11-12 08:10:38 -05:00
|
|
|
--window-icon='update' \
|
2020-11-12 07:31:48 -05:00
|
|
|
--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
|
2020-11-11 09:59:30 -05:00
|
|
|
echo "libreoffice-fresh
|
|
|
|
libmythes" >> /tmp/setup-assistant/pkgs.txt
|
2020-11-12 07:31:48 -05:00
|
|
|
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
|
2020-11-11 09:59:30 -05:00
|
|
|
echo "onlyoffice-bin" >> /tmp/setup-assistant/pkgs.txt
|
2020-11-12 07:31:48 -05:00
|
|
|
fi
|
|
|
|
if grep -R "WPS Office" /tmp/setup-assistant/office.txt; then
|
2020-11-11 09:59:30 -05:00
|
|
|
echo "wps-office
|
|
|
|
wps-office-mime
|
|
|
|
ttf-wps-fonts" >> /tmp/setup-assistant/pkgs.txt
|
2020-11-12 07:31:48 -05:00
|
|
|
fi
|
|
|
|
if grep -R "Free Office" /tmp/setup-assistant/office.txt; then
|
2020-11-11 09:59:30 -05:00
|
|
|
echo "freeoffice" >> /tmp/setup-assistant/pkgs.txt
|
2020-11-12 07:31:48 -05:00
|
|
|
fi
|
2020-11-12 11:10:25 -05:00
|
|
|
if grep -R "Microsoft Office" /tmp/setup-assistant/office.txt; then
|
|
|
|
echo "ms-office-online" >> /tmp/setup-assistant/pkgs.txt
|
|
|
|
fi
|
2020-11-12 07:31:48 -05:00
|
|
|
if grep -R "Yozo Office" /tmp/setup-assistant/office.txt; then
|
|
|
|
echo "yozo-office
|
2020-11-11 09:59:30 -05:00
|
|
|
yozo-office-fonts" >> /tmp/setup-assistant/pkgs.txt
|
2020-11-12 07:31:48 -05:00
|
|
|
fi
|
|
|
|
if grep -R "Calligra Office" /tmp/setup-assistant/office.txt; then
|
2020-11-11 09:59:30 -05:00
|
|
|
echo "calligra" >> /tmp/setup-assistant/pkgs.txt
|
2020-11-12 07:31:48 -05:00
|
|
|
fi
|
|
|
|
if grep -R "Abiword" /tmp/setup-assistant/office.txt; then
|
2020-11-11 09:59:30 -05:00
|
|
|
echo "abiword" >> /tmp/setup-assistant/pkgs.txt
|
2020-11-11 08:58:21 -05:00
|
|
|
fi
|
2020-10-27 08:02:51 -04:00
|
|
|
|
2020-11-12 07:31:48 -05:00
|
|
|
yad \
|
|
|
|
--image='telegram-desktop' \
|
|
|
|
--title="Upgrade to ULTIMATE 👾" \
|
2020-11-12 08:10:38 -05:00
|
|
|
--window-icon='update' \
|
2020-11-12 07:31:48 -05:00
|
|
|
--text "Here are some desktop apps that might be useful to you:" \
|
|
|
|
--geometry=600x400 \
|
|
|
|
--list \
|
|
|
|
--checklist \
|
|
|
|
--column=Install \
|
|
|
|
--column=Applications \
|
|
|
|
--center < /usr/lib/setup-assistant/desktop-apps.txt > /tmp/setup-assistant/desktop-apps.txt
|
|
|
|
|
|
|
|
if grep -R "Telegram" /tmp/setup-assistant/desktop-apps.txt; then
|
|
|
|
echo "telegram-desktop" >> /tmp/setup-assistant/pkgs.txt
|
|
|
|
fi
|
|
|
|
if grep -R "Joplin" /tmp/setup-assistant/desktop-apps.txt; then
|
|
|
|
echo "joplin" >> /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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
yad \
|
|
|
|
--image='gimp' \
|
|
|
|
--title="Upgrade to ULTIMATE 👾" \
|
2020-11-12 08:10:38 -05:00
|
|
|
--window-icon='update' \
|
2020-11-12 07:31:48 -05:00
|
|
|
--text "What about multimedia software?" \
|
|
|
|
--geometry=600x400 \
|
|
|
|
--list \
|
|
|
|
--checklist \
|
|
|
|
--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
|
2020-11-12 11:10:25 -05:00
|
|
|
if grep -R "Krita" /tmp/setup-assistant/multimedia.txt; then
|
|
|
|
echo "krita" >> /tmp/setup-assistant/pkgs.txt
|
|
|
|
fi
|
|
|
|
if grep -R "Olivia" /tmp/setup-assistant/multimedia.txt; then
|
|
|
|
echo "olivia" >> /tmp/setup-assistant/pkgs.txt
|
|
|
|
fi
|
2020-11-12 07:31:48 -05:00
|
|
|
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 👾" \
|
2020-11-12 08:10:38 -05:00
|
|
|
--window-icon='update' \
|
2020-11-12 07:31:48 -05:00
|
|
|
--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
|
2020-11-11 09:59:30 -05:00
|
|
|
echo "garuda-virtualbox" >> /tmp/setup-assistant/pkgs.txt
|
2020-11-12 07:31:48 -05:00
|
|
|
fi
|
|
|
|
if grep -R "Virt-manager" /tmp/setup-assistant/virtualisation.txt; then
|
2020-11-11 09:59:30 -05:00
|
|
|
echo "garuda-virt-manager" >> /tmp/setup-assistant/pkgs.txt
|
2020-11-11 08:58:21 -05:00
|
|
|
fi
|
|
|
|
|
2020-11-12 07:31:48 -05:00
|
|
|
|
2020-11-12 11:10:25 -05:00
|
|
|
alacritty -e sh /usr/lib/setup-assistant/apply.sh
|
2020-11-12 08:22:31 -05:00
|
|
|
|
2020-11-12 11:10:25 -05:00
|
|
|
if [ -e "/tmp/setup-assistant/setup_user.sh" ]; then
|
|
|
|
sh /tmp/setup-assistant/setup_user.sh
|
2020-11-12 08:22:31 -05:00
|
|
|
fi
|
|
|
|
|
2020-11-11 09:59:30 -05:00
|
|
|
rm -rf /tmp/setup-assistant
|
2020-11-11 08:58:21 -05:00
|
|
|
}
|
2020-10-27 08:02:51 -04:00
|
|
|
|
2020-11-12 08:10:38 -05:00
|
|
|
|
2020-10-27 08:02:51 -04:00
|
|
|
systemctl --user enable psd >/dev/null 2>&1 &
|
|
|
|
systemctl --user start psd >/dev/null 2>&1 &
|
|
|
|
|
|
|
|
libinput-gestures-setup autostart >/dev/null 2>&1 &
|
|
|
|
libinput-gestures-setup start >/dev/null 2>&1 &
|
|
|
|
|
2020-10-03 11:50:23 -04:00
|
|
|
|
2020-11-12 08:10:38 -05:00
|
|
|
if ! yad \
|
|
|
|
--image='update' \
|
|
|
|
--title="Setup Assistant" \
|
|
|
|
--window-icon='update' \
|
|
|
|
--geometry=700x100 \
|
|
|
|
--button=No:0 \
|
|
|
|
--button=Yes:1 \
|
|
|
|
--text-align=center \
|
|
|
|
--center \
|
|
|
|
--text "Do you want to get a recent mirrorlist and refresh mirrors?"; then
|
2020-11-12 11:10:25 -05:00
|
|
|
reflector-simple >/dev/null 2>&1
|
2020-11-12 08:10:38 -05:00
|
|
|
fi
|
|
|
|
|
|
|
|
if ! yad \
|
|
|
|
--image='update' \
|
|
|
|
--title="Setup Assistant" \
|
|
|
|
--window-icon='update' \
|
|
|
|
--geometry=700x100 \
|
|
|
|
--button=No:0 \
|
|
|
|
--button=Yes:1 \
|
|
|
|
--text-align=center \
|
|
|
|
--center \
|
|
|
|
--text "Update the system? (recommended!)"; then
|
2020-11-12 11:10:25 -05:00
|
|
|
alacritty -e sudo pacman "-Syyu"
|
2020-11-12 08:10:38 -05:00
|
|
|
fi
|
2020-10-03 11:50:23 -04:00
|
|
|
|
2020-11-12 08:10:38 -05:00
|
|
|
if ! yad \
|
|
|
|
--image='pamac' \
|
|
|
|
--title="Setup Assistant" \
|
|
|
|
--window-icon='update' \
|
|
|
|
--geometry=700x100 \
|
|
|
|
--button=No:0 \
|
|
|
|
--button=Yes:1 \
|
|
|
|
--text-align=center \
|
|
|
|
--center \
|
|
|
|
--text "Upgrade to Ultimate? (You can select which apps you want!)"; then
|
|
|
|
upgrade2ultimate
|
2020-10-03 11:50:23 -04:00
|
|
|
fi
|
2020-11-12 08:10:38 -05:00
|
|
|
|