~stormdragon2976/strychnine

a6693c5a3d48c73a6d48e15cdde2cb01b8edba45 — Storm Dragon 2 months ago 81d8038
Improved the additional programs section.
1 files changed, 21 insertions(+), 14 deletions(-)

M setup.sh
M setup.sh => setup.sh +21 -14
@@ 361,7 361,7 @@ fi
add_setting bind f exec $fileBrowser
# Configure web browser
unset programList
for i in chromium epiphany firefox midori seamonkey ; do
for i in brave chromium epiphany firefox midori seamonkey ; do
if hash ${i/#-/} &> /dev/null ; then
if [ -n "$programList" ]; then
programList="$programList $i"


@@ 494,27 494,34 @@ fi
if [ -n "$(find /usr -type f -name 'notification-daemon' 2> /dev/null)" ] ; then
add_setting "exec $(find /usr -type f -name 'notification-daemon' 2> /dev/null)"
fi
unset programList
programList=""
unset programs
brlapi="$(yesno "Do you want to use a braille display with Orca?")"
if [ "$brlapi" = "yes" ]; then
programList="${programList}$(command -v xbrlapi)%20-q "
programs+=("$(command -v xbrlapi) -q")
fi
if command -v glipper &> /dev/null ; then
programList="${programList}$(command -v glipper) "
programs+=("$(command -v glipper)")
fi
if [ "${fileBrowser##*/}" = "nemo" ]; then
programList="${programList}${fileBrowser}%20-n "
programs+=("${fileBrowser} -n")
fi
if [ "${fileBrowser##*/}" = "pcmanfm" ]; then
programList="${programList}${fileBrowser}%20--desktop "
fi
echo "Enter any programs you want started automatically separated by spaces (If your program requires a space, type %20):" | fold -s -w $(tput cols)
read -e -i "$programList" programs
if [ -n "$programs" ]; then
for i in $programs ; do
if command -v $(echo "${i##*/}" | sed 's/%20.*//') &> /dev/null ; then
add_setting exec ${i//\%20/ }
programs+=("${fileBrowser} --desktop")
fi
echo "Enter any programs you want started automatically one per line. Press enter on a blank line when you are finished." | fold -s -w $(tput cols)
read -p "Enter program or enter when done: " -e programName
while [[ -n "$programName" ]]; do
if [[ -n "${programName}" ]]; then
programs+=("$programName")
fi
read -p "Enter program or enter when done: " -e programName
done
if [[ -n "$programs" ]]; then
for i in "${programs[@]}" ; do
if command -v "${i%% *}" &> /dev/null ; then
add_setting exec $(command -v "${i}")
elif [[ -x "${i% *}" ]]; then
add_setting exec $i
else
echo "$i was not found."
fi