update
This commit is contained in:
parent
19ff93c71a
commit
8c1fe1878e
5 changed files with 75 additions and 0 deletions
20
.test/choose/LibreWolf.sh
Normal file
20
.test/choose/LibreWolf.sh
Normal 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
17
.test/choose/Zen.sh
Normal 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
|
5
.test/choose/zenity-choose.sh
Normal file
5
.test/choose/zenity-choose.sh
Normal 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
|
5
.test/dual-select/yes-no.sh
Normal file
5
.test/dual-select/yes-no.sh
Normal 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
28
.test/list.sh
Normal 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
|
Loading…
Reference in a new issue