Add desktop icon & push latest GUI changes to setup-assistant
This commit is contained in:
parent
008614d12a
commit
96ddc64929
4 changed files with 65 additions and 56 deletions
|
@ -1,13 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
function goto
|
|
||||||
{
|
|
||||||
label=$1
|
|
||||||
cmd=$(sed -n "/^:[[:blank:]][[:blank:]]*${label}/{:a;n;p;ba};" $0 |
|
|
||||||
grep -v ':$')
|
|
||||||
eval "$cmd"
|
|
||||||
exit
|
|
||||||
}
|
|
||||||
|
|
||||||
function upgrade2ultimate
|
function upgrade2ultimate
|
||||||
{
|
{
|
||||||
rm -rf /tmp/setup-assistant
|
rm -rf /tmp/setup-assistant
|
||||||
|
@ -17,6 +8,7 @@ function upgrade2ultimate
|
||||||
if ! yad \
|
if ! yad \
|
||||||
--image='font-manager' \
|
--image='font-manager' \
|
||||||
--title="Upgrade to ULTIMATE 👾" \
|
--title="Upgrade to ULTIMATE 👾" \
|
||||||
|
--window-icon='update' \
|
||||||
--geometry=700x100 \
|
--geometry=700x100 \
|
||||||
--button=No:0 \
|
--button=No:0 \
|
||||||
--button=Yes:1 \
|
--button=Yes:1 \
|
||||||
|
@ -29,12 +21,13 @@ function upgrade2ultimate
|
||||||
if ! yad \
|
if ! yad \
|
||||||
--image='AppImageLauncher' \
|
--image='AppImageLauncher' \
|
||||||
--title="Upgrade to ULTIMATE 👾" \
|
--title="Upgrade to ULTIMATE 👾" \
|
||||||
|
--window-icon='update' \
|
||||||
--geometry=700x100 \
|
--geometry=700x100 \
|
||||||
--button=No:0 \
|
--button=No:0 \
|
||||||
--button=Yes:1 \
|
--button=Yes:1 \
|
||||||
--text-align=center \
|
--text-align=center \
|
||||||
--center \
|
--center \
|
||||||
--text "What about Snaps, Flatpak and Appimage support?"; then
|
--text "What about Snaps, Flatpak, Appimage and firmware update 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
|
||||||
|
@ -52,6 +45,7 @@ function upgrade2ultimate
|
||||||
if ! yad \
|
if ! yad \
|
||||||
--image='pattern-games' \
|
--image='pattern-games' \
|
||||||
--title="Upgrade to ULTIMATE 👾" \
|
--title="Upgrade to ULTIMATE 👾" \
|
||||||
|
--window-icon='update' \
|
||||||
--geometry=700x100 \
|
--geometry=700x100 \
|
||||||
--button=No:0 \
|
--button=No:0 \
|
||||||
--button=Yes:1 \
|
--button=Yes:1 \
|
||||||
|
@ -67,6 +61,7 @@ function upgrade2ultimate
|
||||||
yad \
|
yad \
|
||||||
--image='org.pulseaudio.pavucontrol' \
|
--image='org.pulseaudio.pavucontrol' \
|
||||||
--title="Upgrade to ULTIMATE 👾" \
|
--title="Upgrade to ULTIMATE 👾" \
|
||||||
|
--window-icon='update' \
|
||||||
--text "We have metapkgs for these audio systems:" \
|
--text "We have metapkgs for these audio systems:" \
|
||||||
--geometry=600x400 \
|
--geometry=600x400 \
|
||||||
--list \
|
--list \
|
||||||
|
@ -93,7 +88,8 @@ function upgrade2ultimate
|
||||||
yad \
|
yad \
|
||||||
--image='cupsprinter' \
|
--image='cupsprinter' \
|
||||||
--title="Upgrade to ULTIMATE 👾" \
|
--title="Upgrade to ULTIMATE 👾" \
|
||||||
--text "We have metapkgs for these audio systems:" \
|
--window-icon='update' \
|
||||||
|
--text "We have metapkgs for these:" \
|
||||||
--geometry=600x400 \
|
--geometry=600x400 \
|
||||||
--list \
|
--list \
|
||||||
--checklist \
|
--checklist \
|
||||||
|
@ -116,6 +112,7 @@ function upgrade2ultimate
|
||||||
yad \
|
yad \
|
||||||
--image='libreoffice-main' \
|
--image='libreoffice-main' \
|
||||||
--title="Upgrade to ULTIMATE 👾" \
|
--title="Upgrade to ULTIMATE 👾" \
|
||||||
|
--window-icon='update' \
|
||||||
--text "There are a lot of office suites to choose from!" \
|
--text "There are a lot of office suites to choose from!" \
|
||||||
--geometry=600x400 \
|
--geometry=600x400 \
|
||||||
--list \
|
--list \
|
||||||
|
@ -157,6 +154,7 @@ function upgrade2ultimate
|
||||||
yad \
|
yad \
|
||||||
--image='telegram-desktop' \
|
--image='telegram-desktop' \
|
||||||
--title="Upgrade to ULTIMATE 👾" \
|
--title="Upgrade to ULTIMATE 👾" \
|
||||||
|
--window-icon='update' \
|
||||||
--text "Here are some desktop apps that might be useful to you:" \
|
--text "Here are some desktop apps that might be useful to you:" \
|
||||||
--geometry=600x400 \
|
--geometry=600x400 \
|
||||||
--list \
|
--list \
|
||||||
|
@ -201,6 +199,7 @@ function upgrade2ultimate
|
||||||
yad \
|
yad \
|
||||||
--image='gimp' \
|
--image='gimp' \
|
||||||
--title="Upgrade to ULTIMATE 👾" \
|
--title="Upgrade to ULTIMATE 👾" \
|
||||||
|
--window-icon='update' \
|
||||||
--text "What about multimedia software?" \
|
--text "What about multimedia software?" \
|
||||||
--geometry=600x400 \
|
--geometry=600x400 \
|
||||||
--list \
|
--list \
|
||||||
|
@ -246,6 +245,7 @@ function upgrade2ultimate
|
||||||
yad \
|
yad \
|
||||||
--image='virtualbox' \
|
--image='virtualbox' \
|
||||||
--title="Upgrade to ULTIMATE 👾" \
|
--title="Upgrade to ULTIMATE 👾" \
|
||||||
|
--window-icon='update' \
|
||||||
--text "Are you rather a fan of Virtualbox or virt-manager?" \
|
--text "Are you rather a fan of Virtualbox or virt-manager?" \
|
||||||
--geometry=600x400 \
|
--geometry=600x400 \
|
||||||
--list \
|
--list \
|
||||||
|
@ -261,61 +261,59 @@ function upgrade2ultimate
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
clear
|
|
||||||
sh /tmp/setup-assistant/prepare.sh
|
sh /tmp/setup-assistant/prepare.sh
|
||||||
cat /tmp/setup-assistant/pkgs.txt | sed '/^$/d;s/[[:blank:]]//g' > /tmp/setup-assistant/pkgs-install.txt
|
cat /tmp/setup-assistant/pkgs.txt | sed '/^$/d;s/[[:blank:]]//g' > /tmp/setup-assistant/pkgs-install.txt
|
||||||
sudo pacman --needed -S - < /tmp/setup-assistant/pkgs-install.txt
|
alacritty -e sudo pacman "--needed -S - < /tmp/setup-assistant/pkgs-install.txt"
|
||||||
sh /tmp/setup-assistant/setup.sh
|
sh /tmp/setup-assistant/setup.sh
|
||||||
|
read -p "Press enter finish the setup!"
|
||||||
rm -rf /tmp/setup-assistant
|
rm -rf /tmp/setup-assistant
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
systemctl --user enable psd >/dev/null 2>&1 &
|
systemctl --user enable psd >/dev/null 2>&1 &
|
||||||
systemctl --user start psd >/dev/null 2>&1 &
|
systemctl --user start psd >/dev/null 2>&1 &
|
||||||
|
|
||||||
libinput-gestures-setup autostart >/dev/null 2>&1 &
|
libinput-gestures-setup autostart >/dev/null 2>&1 &
|
||||||
libinput-gestures-setup start >/dev/null 2>&1 &
|
libinput-gestures-setup start >/dev/null 2>&1 &
|
||||||
|
|
||||||
: start
|
|
||||||
clear
|
|
||||||
echo "What do you want to do?"
|
|
||||||
echo ""
|
|
||||||
echo "1) Get initial mirrorlist & download list of packages"
|
|
||||||
echo "2) Update the system"
|
|
||||||
echo "3) Enable systemwide adblocking / HiDPI mode"
|
|
||||||
echo "4) Disable CPU migitations / change boot options"
|
|
||||||
echo "5) Install additional (Ultimate) packages by choosing which ones you need"
|
|
||||||
echo ""
|
|
||||||
echo "6) Exit"
|
|
||||||
|
|
||||||
read selection
|
if ! yad \
|
||||||
|
--image='update' \
|
||||||
if [ $selection = "1" ]; then
|
--title="Setup Assistant" \
|
||||||
clear
|
--window-icon='update' \
|
||||||
echo "Select the right mirrors in Reflector Simple!"
|
--geometry=700x100 \
|
||||||
echo "If no mirrors were found select german servers. ☝🏻"
|
--button=No:0 \
|
||||||
reflector-simple >/dev/null 2>&1
|
--button=Yes:1 \
|
||||||
sudo pacman -Syy
|
--text-align=center \
|
||||||
goto "start"
|
--center \
|
||||||
elif [ $selection = "2" ]; then
|
--text "Do you want to get a recent mirrorlist and refresh mirrors?"; then
|
||||||
clear
|
reflector-simple >/dev/null 2>&1
|
||||||
sudo pacman -Syu
|
alacritty -e sudo pacman "-Syy"
|
||||||
goto "start"
|
|
||||||
elif [ $selection = "3" ]; then
|
|
||||||
clear
|
|
||||||
echo "Find it in the settings tab. 🖥"
|
|
||||||
garuda-welcome >/dev/null 2>&1
|
|
||||||
goto "start"
|
|
||||||
elif [ $selection = "4" ]; then
|
|
||||||
clear
|
|
||||||
echo "Disabling CPU mitiations increases performance but can possibly lead to security issues."
|
|
||||||
echo "Use it with caution! 🛑"
|
|
||||||
sudo garuda-boot-options >/dev/null 2>&1
|
|
||||||
goto "start"
|
|
||||||
elif [ $selection = "5" ]; then
|
|
||||||
upgrade2ultimate
|
|
||||||
elif [ $selection = "6" ]; then
|
|
||||||
exit
|
|
||||||
else "Thats not a valid choice! ❌"
|
|
||||||
goto "start"
|
|
||||||
fi
|
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
|
||||||
|
alacritty -e sudo pacman "-Syu"
|
||||||
|
fi
|
||||||
|
|
||||||
|
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
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
|
@ -4,3 +4,5 @@ false
|
||||||
Alsa
|
Alsa
|
||||||
false
|
false
|
||||||
Pipewire
|
Pipewire
|
||||||
|
false
|
||||||
|
My audio works fine, I dont need any of these
|
||||||
|
|
|
@ -15,4 +15,4 @@ Calligra Office
|
||||||
false
|
false
|
||||||
Abiword (Simple wordprocessor, recommended for simple writing)
|
Abiword (Simple wordprocessor, recommended for simple writing)
|
||||||
false
|
false
|
||||||
No office (Who needs office anyway?)
|
No office suite
|
||||||
|
|
9
usr/share/applications/setup-assistant.desktop
Executable file
9
usr/share/applications/setup-assistant.desktop
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/usr/bin/env xdg-open
|
||||||
|
[Desktop Entry]
|
||||||
|
Encoding=UTF-8
|
||||||
|
Exec=setup-assistant
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
Icon=pamac-updater
|
||||||
|
Categories=GTK;System;Garuda-Setup;
|
||||||
|
NoDisplay=false
|
Loading…
Reference in a new issue