This commit is contained in:
Korbs 2024-09-30 19:32:42 -04:00
parent 19ff93c71a
commit 8c1fe1878e
5 changed files with 75 additions and 0 deletions

20
.test/choose/LibreWolf.sh Normal file
View file

@ -0,0 +1,20 @@
#!/bin/sh
(
echo "10"
echo "20"
echo "50"
echo "75"
echo "100"
) |
zenity --progress \
--title="Installing Web Browser" \
--text="Beginning installation..." \
--percentage=0
if [ "$?" = -1 ] ; then
zenity --error \
--text="Installation was canceled."
else
zenity --info \
--text="To apply custom configuration, open LibreWolf and then close it. Doing so will generate the folder for LibreWolf. Once you've done that, click OK."
fi

17
.test/choose/Zen.sh Normal file
View file

@ -0,0 +1,17 @@
#!/bin/sh
(
echo "10"
echo "20"
echo "50"
echo "75"
echo "100"
) |
zenity --progress \
--title="Installing Web Browser" \
--text="Beginning installation..." \
--percentage=0
if [ "$?" = -1 ] ; then
zenity --error \
--text="Installation was canceled."
fi

View file

@ -0,0 +1,5 @@
opt1="LibreWolf"
opt2="Zen"
int=`zenity --height=360 --list --radiolist --title "Linux Setup" --text 'Select a web browser:' --column '' --column 'Browser' FALSE "$opt1" FALSE "$opt2"`
sh .test/choose/$int.sh

View file

@ -0,0 +1,5 @@
if zenity --title="Linux Setup" --ok-label="Yes" --cancel-label="No" --question --text="Choose"; then
echo "Yes"
else
echo "No"
fi

28
.test/list.sh Normal file
View file

@ -0,0 +1,28 @@
if zenity --width=400 --height=600 --list --title "Linux Setup" --ok-label="Uninstall Now" --cancel-label="Abort Setup" --text 'The following will be uninstalled' --column 'Apps' \
"Camera" \
"Characters" \
"Clocks" \
"Connections" \
"Contacts" \
"Disk" \
"Document Scanner" \
"Disk Usage Analyzer" \
"Document Viewer" \
"Fedora Media Writer" \
"Fonts" \
"Help" \
"Libre Office" \
"Logs" \
"Maps" \
"Mozilla Firefox" \
"Problem Reporting" \
"Rhythmbox" \
"System Monitor" \
"Terminal" \
"Tour" \
"Videos" \
"Weather"; then
echo "Uninstalling apps now..."
else
echo "Setup was aborted"
fi