Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions setup_utility.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ folder_path=""
first_run=true
if [ -z "$1" ]; then
folder_path="$DIR/subscripts"
sudo chmod -R +x "$DIR/subscripts"
sudo chmod -R -x "$DIR/subscripts/5Udev_rules/DISREGARD_udev_rules"
sudo chmod +x "$DIR/subscripts/5Udev_rules/DISREGARD_udev_rules"

# Make all .sh files in the subscripts folder executable
find "$folder_path" -type f -name "*.sh" -exec chmod +x {} \;
else
folder_path="$1"
first_run=false
Expand Down
34 changes: 34 additions & 0 deletions subscripts/6Branding/1Set_wallpaper.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/bin/bash

script_dir="$(dirname "$(realpath "$0")")"
folder_path="$script_dir/DISREGARD/wallpapers"

echo "Available wallpapers in $folder_path"

# Build options array
options=()
for file in "$folder_path"/*; do
filename=$(basename "$file")
options+=("$filename" "")
done

wallpaper=$(whiptail \
--title "Set Wallpaper" \
--menu "Select wallpaper:" 0 0 0 \
"${options[@]}" \
3>&1 1>&2 2>&3)

# If user cancelled
if [ $? -ne 0 ]; then
echo "Cancelled."
exit 1
fi

# Full path to selected file
wallpaper_path="$folder_path/$wallpaper"

gsettings set org.gnome.desktop.background picture-uri "file://$wallpaper_path" # Light mode
gsettings set org.gnome.desktop.background picture-uri-dark "file://$wallpaper_path" # Dark mode

# Exit 1 will not show the "Press enter to continue" menu but rather go straight back to the main menu
exit 1
12 changes: 12 additions & 0 deletions subscripts/6Branding/2Set_terminal_MOTD.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

sudo chmod -x /etc/update-motd.d/10-help-text
sudo chmod -x /etc/update-motd.d/60-unminimize
sudo chmod -x /etc/update-motd.d/90-updates-available

sudo cp subscripts/6Branding/DISREGARD/10-fly4future /etc/update-motd.d/10-fly4future
sudo chmod +x /etc/update-motd.d/10-fly4future

echo "Terminal MOTD has been set use Fly4Future branding."

exit 0
16 changes: 16 additions & 0 deletions subscripts/6Branding/DISREGARD/10-fly4future
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh

NO_FORMAT="\033[0m"
BOLD="\033[1m"
DARKORANGE="\033[38;5;208m"

echo "${NO_FORMAT}"
echo "▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ "
echo "█████████▀ ▂████ █████████▀ ▗▄▄▄▖▗▖ ▗▄▖ ▗▄▄▄▖ ▄ "
echo "███ ▆█████ ███ ▐▌ ▐▌▗▖ ▄ ▗▛▐▌ ▐▌ ▗▖ ▄ ▄█▄ ▄ ▗▖▗▖▄▄ ▄▄▄ ®"
echo "███▄▄▄▖ ▗██▛ ███ ███▄▄▄▖ ▐▛▀▀▘▐▌ ▜▖ ▟▘▗█▄▟▙▖▐▛▀▀▘▐▌ █ █ █ ▐▌▐▛ ▐▙▄▄▌ "
echo "█████▀ ▟██▘ ███ █████▀ ▐▌ ▐▙▖ ▜▟▘ ▐▌ ▐▌ ▝▙▄▄▜ █▄ ▜▄▄▞▌▐▌ ▝▙▄▄ "
echo "███ ▝▜███████ ███ ▗▟▘ "
echo " ███ "
echo " ${BOLD}${DARKORANGE}Gateway to Advanced Robotic Autonomy${NO_FORMAT}"
echo ""
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.