mirror of
https://github.com/PurpleComputing/helpful-scripts.git
synced 2026-02-03 13:53:24 +00:00
Updated script for DOCKPOS variable.
This commit is contained in:
@@ -1,47 +1,49 @@
|
||||
DEPLOG=/var/tmp/depnotify.log
|
||||
|
||||
|
||||
# ********************************************************************************************************************************
|
||||
# APP LABELS
|
||||
# ********************************************************************************************************************************
|
||||
if [ -z "$DOCKPOS" ]; then
|
||||
echo "Dock Position is not set, adding $@ to the end of the dock"
|
||||
DOCKPOS=end
|
||||
fi
|
||||
|
||||
# BROWSERS
|
||||
if [[ " $@ " =~ "safari" ]]; then
|
||||
APPNA="Safari"
|
||||
APPPA="/Applications"
|
||||
DOCKPOS=end
|
||||
|
||||
fi
|
||||
if [[ " $@ " =~ "googlechrome" ]]; then
|
||||
APPNA="Google Chrome"
|
||||
APPPA="/Applications"
|
||||
DOCKPOS=end
|
||||
|
||||
fi
|
||||
if [[ " $@ " =~ "firefox" ]]; then
|
||||
APPNA="Firefox"
|
||||
APPPA="/Applications"
|
||||
DOCKPOS=end
|
||||
|
||||
fi
|
||||
|
||||
# MICROSOFT OFFICE APPS
|
||||
if [[ " $@ " =~ "microsoftword" ]]; then
|
||||
APPNA="Microsoft Word"
|
||||
APPPA="/Applications"
|
||||
DOCKPOS=end
|
||||
|
||||
fi
|
||||
if [[ " $@ " =~ "microsoftexcel" ]]; then
|
||||
APPNA="Microsoft Excel"
|
||||
APPPA="/Applications"
|
||||
DOCKPOS=end
|
||||
|
||||
fi
|
||||
if [[ " $@ " =~ "microsoftpowerpoint" ]]; then
|
||||
APPNA="Microsoft Powerpoint"
|
||||
APPPA="/Applications"
|
||||
DOCKPOS=end
|
||||
|
||||
fi
|
||||
if [[ " $@ " =~ "microsoftoutlook" ]]; then
|
||||
APPNA="Microsoft Outlook"
|
||||
APPPA="/Applications"
|
||||
DOCKPOS=end
|
||||
|
||||
fi
|
||||
|
||||
|
||||
@@ -49,128 +51,128 @@ fi
|
||||
if [[ " $@ " =~ "dropbox" ]]; then
|
||||
APPNA="Dropbox"
|
||||
APPPA="/Applications"
|
||||
DOCKPOS=end
|
||||
|
||||
fi
|
||||
if [[ " $@ " =~ "microsoftonedrive" ]]; then
|
||||
APPNA="OneDrive"
|
||||
APPPA="/Applications"
|
||||
DOCKPOS=end
|
||||
|
||||
fi
|
||||
|
||||
# VIDEO MEETING APPS
|
||||
if [[ " $@ " =~ "slack" ]]; then
|
||||
APPNA="Slack"
|
||||
APPPA="/Applications"
|
||||
DOCKPOS=end
|
||||
|
||||
fi
|
||||
if [[ " $@ " =~ "microsoftteams" ]]; then
|
||||
APPNA="Microsoft Teams"
|
||||
APPPA="/Applications"
|
||||
DOCKPOS=end
|
||||
|
||||
fi
|
||||
if [[ " $@ " =~ "zoom" ]]; then
|
||||
APPNA="zoom.us"
|
||||
APPPA="/Applications"
|
||||
DOCKPOS=end
|
||||
|
||||
fi
|
||||
if [[ " $@ " =~ "skype" ]]; then
|
||||
APPNA="Skype"
|
||||
APPPA="/Applications"
|
||||
DOCKPOS=end
|
||||
|
||||
fi
|
||||
# ADOBE APPS
|
||||
if [[ " $@ " =~ "photoshop2022" ]]; then
|
||||
APPNA="Adobe Photoshop 2022"
|
||||
APPPA="/Applications/Adobe Photoshop 2022"
|
||||
DOCKPOS=end
|
||||
|
||||
fi
|
||||
if [[ " $@ " =~ "indesign2022" ]]; then
|
||||
APPNA="Adobe InDesign 2022"
|
||||
APPPA="/Applications/Adobe InDesign 2022"
|
||||
DOCKPOS=end
|
||||
|
||||
fi
|
||||
if [[ " $@ " =~ "illustrator2022" ]]; then
|
||||
APPNA="Adobe Illustrator"
|
||||
APPPA="/Applications/Adobe Illustrator 2022"
|
||||
DOCKPOS=end
|
||||
|
||||
fi
|
||||
if [[ " $@ " =~ "acrobatdc" ]]; then
|
||||
APPNA="Adobe Acrobat"
|
||||
APPPA="/Applications/Adobe Acrobat DC"
|
||||
DOCKPOS=end
|
||||
|
||||
fi
|
||||
if [[ " $@ " =~ "adobecreativeclouddesktop" ]]; then
|
||||
APPNA="Creative Cloud"
|
||||
APPPA="/Applications/Utilities/Adobe Creative Cloud/ACC"
|
||||
DOCKPOS=end
|
||||
|
||||
fi
|
||||
#OTHERS
|
||||
if [[ " $@ " =~ "mail" ]]; then
|
||||
APPNA="Mail"
|
||||
APPPA="/Applications"
|
||||
DOCKPOS=end
|
||||
|
||||
fi
|
||||
if [[ " $@ " =~ "maps" ]]; then
|
||||
APPNA="Maps"
|
||||
APPPA="/Applications"
|
||||
DOCKPOS=end
|
||||
|
||||
fi
|
||||
if [[ " $@ " =~ "news" ]]; then
|
||||
APPNA="News"
|
||||
APPPA="/Applications"
|
||||
DOCKPOS=end
|
||||
|
||||
fi
|
||||
if [[ " $@ " =~ "filezilla" ]]; then
|
||||
APPNA="FileZilla"
|
||||
APPPA="/Applications"
|
||||
DOCKPOS=end
|
||||
|
||||
fi
|
||||
if [[ " $@ " =~ "teamviewer" ]]; then
|
||||
APPNA="TeamViewer"
|
||||
APPPA="/Applications"
|
||||
DOCKPOS=end
|
||||
|
||||
fi
|
||||
if [[ " $@ " =~ "microsoftremotedesktop" ]]; then
|
||||
APPNA="Microsoft Remote Desktop"
|
||||
APPPA="/Applications"
|
||||
DOCKPOS=end
|
||||
|
||||
fi
|
||||
if [[ " $@ " =~ "1password8" ]]; then
|
||||
APPNA="1Password"
|
||||
APPPA="/Applications"
|
||||
DOCKPOS=end
|
||||
|
||||
fi
|
||||
if [[ " $@ " =~ "1password7" ]]; then
|
||||
APPNA="1Password 7"
|
||||
APPPA="/Applications"
|
||||
DOCKPOS=end
|
||||
|
||||
fi
|
||||
# NOT KNOWN TO INSTALLOMATOR - USE FOR DOCK POPULATION ONLY
|
||||
|
||||
if [[ " $@ " =~ "zywallsecuextender" ]]; then
|
||||
APPNA="ZyWALL SecuExtender"
|
||||
APPPA="/Applications"
|
||||
DOCKPOS=end
|
||||
|
||||
fi
|
||||
if [[ " $@ " =~ "redstorproese" ]]; then
|
||||
APPNA="Redstor Pro ESE"
|
||||
APPPA="/Applications"
|
||||
DOCKPOS=end
|
||||
|
||||
fi
|
||||
if [[ " $@ " =~ "mitelconnect" ]]; then
|
||||
APPNA="Mitel Connect"
|
||||
APPPA="/Applications"
|
||||
DOCKPOS=end
|
||||
|
||||
fi
|
||||
if [[ " $@ " =~ "transmit" ]]; then
|
||||
APPNA="Transmit"
|
||||
APPPA="/Applications"
|
||||
DOCKPOS=end
|
||||
|
||||
fi
|
||||
if [[ " $@ " =~ "monday" ]]; then
|
||||
APPNA="monday.com"
|
||||
APPPA="/Applications"
|
||||
DOCKPOS=end
|
||||
|
||||
fi
|
||||
# ********************************************************************************************************************************
|
||||
# END APP LABELS
|
||||
@@ -189,7 +191,7 @@ fi
|
||||
if [[ " $@ " =~ "systempreferences" ]]; then
|
||||
APPNA="System Preferences"
|
||||
APPPA="/Applications"
|
||||
DOCKPOS=end
|
||||
|
||||
fi
|
||||
|
||||
# LAUNCHPAD
|
||||
|
||||
Reference in New Issue
Block a user