mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-20 21:03:35 +00:00
playing with the look of the dialog
This commit is contained in:
@@ -118,9 +118,11 @@ printlog(){
|
|||||||
if [[ "$(whoami)" == "root" ]]; then
|
if [[ "$(whoami)" == "root" ]]; then
|
||||||
echo "$timestamp" : "${log_priority}${space_char} : $label : ${logmessage}" | tee -a $log_location
|
echo "$timestamp" : "${log_priority}${space_char} : $label : ${logmessage}" | tee -a $log_location
|
||||||
updateDialogProgressText "${logmessage}" "$DIALOGCMDFILE"
|
updateDialogProgressText "${logmessage}" "$DIALOGCMDFILE"
|
||||||
|
updateDialogProgress "increment" "$DIALOGCMDFILE"
|
||||||
else
|
else
|
||||||
echo "$timestamp" : "${log_priority}${space_char} : $label : ${logmessage}"
|
echo "$timestamp" : "${log_priority}${space_char} : $label : ${logmessage}"
|
||||||
updateDialogProgressText "${logmessage}" "$DIALOGCMDFILE"
|
updateDialogProgressText "${logmessage}" "$DIALOGCMDFILE"
|
||||||
|
updateDialogProgress "increment" "$DIALOGCMDFILE"
|
||||||
fi
|
fi
|
||||||
done <<< "$log_message"
|
done <<< "$log_message"
|
||||||
fi
|
fi
|
||||||
@@ -949,20 +951,22 @@ launchDialog() {
|
|||||||
log="/var/tmp/dialog.log"
|
log="/var/tmp/dialog.log"
|
||||||
fi
|
fi
|
||||||
# check for laptop or desktop
|
# check for laptop or desktop
|
||||||
if /usr/bin/pmset -g batt | grep -iq "battery"; then
|
#if /usr/bin/pmset -g batt | grep -iq "battery"; then
|
||||||
icon="SF=laptopcomputer.and.arrow.down"
|
# icon="SF=laptopcomputer.and.arrow.down"
|
||||||
else
|
#else
|
||||||
icon="SF=desktopcomputer.and.arrow.down"
|
# icon="SF=desktopcomputer.and.arrow.down"
|
||||||
fi
|
#fi
|
||||||
|
icon="SF=arrow.down.to.line,colour=green,bgcolour=white,weight=regular"
|
||||||
|
|
||||||
# launch dialog
|
# launch dialog
|
||||||
/usr/local/bin/dialog --progress 100 -o \
|
/usr/local/bin/dialog --progress 100 -o \
|
||||||
--title "Installing $name" \
|
--title "none" \
|
||||||
--message "Please wait while $name installs..." \
|
--message "## Installing $name\n\nPlease wait..." \
|
||||||
|
--progress 150 \
|
||||||
--alignment centre \
|
--alignment centre \
|
||||||
--icon "$icon" \
|
--icon "$LOGO" \
|
||||||
--iconsize 100 \
|
--overlayicon "$icon" \
|
||||||
--height 300 --width 550 \
|
--height 350 --width 550 \
|
||||||
--centreicon \
|
--centreicon \
|
||||||
--position bottomright \
|
--position bottomright \
|
||||||
--button1disabled \
|
--button1disabled \
|
||||||
|
|||||||
Reference in New Issue
Block a user