-
Notifications
You must be signed in to change notification settings - Fork 3
/
install-hrwros-starter.sh
executable file
·31 lines (23 loc) · 1.66 KB
/
install-hrwros-starter.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# Create variables for icons and applications directories.
ICONS_DIR=${HOME}/.local/share/icons
APPS_DIR=${HOME}/.local/share/applications
mkdir -p ${ICONS_DIR}
mkdir -p ${APPS_DIR}
echo "Installing the course command shell shortcut..."
# Download the course icon to icons folder.
wget -q "https://raw.githubusercontent.com/rosin-project/mooc_hrwros_unity_launcher/master/hrwros-mooc-icon.png" -O ${ICONS_DIR}/hrwros-mooc-icon.png
wget -q "https://raw.githubusercontent.com/rosin-project/mooc_hrwros_unity_launcher/master/hrwros-mooc-icon-nv.png" -O ${ICONS_DIR}/hrwros-mooc-icon-nv.png
wget -q "https://raw.githubusercontent.com/rosin-project/mooc_hrwros_unity_launcher/master/start-hrwros.desktop" -O ${APPS_DIR}/start-hrwros.desktop
wget -q "https://raw.githubusercontent.com/rosin-project/mooc_hrwros_unity_launcher/master/start-hrwros-nvidia.desktop" -O ${APPS_DIR}/start-hrwros-nvidia.desktop
# For 18.04
#chmod +x ${APPS_DIR}/start-hrwros.desktop ${APPS_DIR}/start-hrwros-nvidia.desktop
# ugly, but will have to do for now
#sed -i "s|Icon=hrwros-mooc-icon.png|Icon=${HOME}/.local/share/icons/hrwros-mooc-icon.png|g" ${APPS_DIR}/start-hrwros.desktop
# ugly, but will have to do for now
#sed -i "s|Icon=hrwros-mooc-icon-nv.png|Icon=${HOME}/.local/share/icons/hrwros-mooc-icon-nv.png|g" ${APPS_DIR}/start-hrwros-nvidia.desktop
echo "Course command shell shortcut installed successfully"
echo "To get started:"
echo "1. Click on the 'Show Applications' button, 3x3 grid of dots in the bottom left corner of the screen, or press the 'Super' key "
echo "2. Type HRWROS"
echo "3. Click on the Shortcut 'HRWROS' or 'HRWROS (Nvida)' depending on your computer configuration"