Skip to content
Merged
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This handles quite a few things;
1. Installing extra repositories for fusion (nonfree & free), vscode, insync, flatpak, etc
2. Install a ton of useful packages (see individual installation scripts for full list)
3. Install gpu drivers (include wayland suspend workarounds for nvidia)
4. Install some custom desktop icons for launching applications
4. Install app-specific desktop launchers and icons with their application installers
5. Install rnnoise and configure pipewire to create a noise filtered mic
6. Configure the system hostname
7. Configure vscode extensions
Expand Down
17 changes: 15 additions & 2 deletions src/bin/appimage-apps/01-cpu-x.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
CPU_X_VERSION="5.1.2"

# Parent Path
PARENT_PATH="/opt/appimages"
PARENT_PATH="/home/${USER}/appimages"

# Appimage path
APPIMAGE_PATH="${PARENT_PATH}/cpu-x-latest.appimage"
Expand All @@ -20,5 +20,18 @@ URL="https://github.com/TheTumultuousUnicornOfDarkness/CPU-X/releases/download/v
sudo curl -L -o "${APPIMAGE_PATH}" "${URL}"

# Set permissions
sudo chown root:root "${APPIMAGE_PATH}"
sudo chown "${USER}:${USER}" "${APPIMAGE_PATH}"
sudo chmod 755 "${APPIMAGE_PATH}"

APPLICATIONS_PATH="${HOME}/.local/share/applications"
mkdir -p "${APPLICATIONS_PATH}"
cat > "${APPLICATIONS_PATH}/cpu-x.desktop" <<EOF
[Desktop Entry]
Name=CPU-X
Comment=CPU-X
GenericName=CPU-X
Exec=${HOME}/appimages/cpu-x-latest.appimage
Type=Application
StartupNotify=false
StartupWMClass=CPU-X
EOF
17 changes: 15 additions & 2 deletions src/bin/appimage-apps/02-yubico.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
YUBICO_MANAGER_VERSION="latest"

# Parent Path
PARENT_PATH="/opt/appimages"
PARENT_PATH="/home/${USER}/appimages"

# Appimage path
APPIMAGE_PATH="${PARENT_PATH}/yubico-manager-latest.appimage"
Expand All @@ -22,5 +22,18 @@ sudo curl -L \
"${URL}"

# Set permissions
sudo chown root:root "${APPIMAGE_PATH}"
sudo chown "${USER}:${USER}" "${APPIMAGE_PATH}"
sudo chmod 755 "${APPIMAGE_PATH}"

APPLICATIONS_PATH="${HOME}/.local/share/applications"
mkdir -p "${APPLICATIONS_PATH}"
cat > "${APPLICATIONS_PATH}/yubico-manager.desktop" <<EOF
[Desktop Entry]
Name=Yubico Manager
Comment=Yubico Manager
GenericName=Yubico Manager
Exec=${HOME}/appimages/yubico-manager-latest.appimage
Type=Application
StartupNotify=false
StartupWMClass=Yubico
EOF
17 changes: 15 additions & 2 deletions src/bin/appimage-apps/03-wootility.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
WOOTILITY_VERSION="4.7.2"

# Parent Path
PARENT_PATH="/opt/appimages"
PARENT_PATH="/home/${USER}/appimages"

# Appimage path
APPIMAGE_PATH="${PARENT_PATH}/wootility-latest.appimage"
Expand All @@ -20,5 +20,18 @@ URL="https://s3.eu-west-2.amazonaws.com/wooting-update/wootility-lekker-linux-la
sudo curl -L -o "${APPIMAGE_PATH}" "${URL}"

# Set permissions
sudo chown root:root "${APPIMAGE_PATH}"
sudo chown "${USER}:${USER}" "${APPIMAGE_PATH}"
sudo chmod 755 "${APPIMAGE_PATH}"

APPLICATIONS_PATH="${HOME}/.local/share/applications"
mkdir -p "${APPLICATIONS_PATH}"
cat > "${APPLICATIONS_PATH}/wootility.desktop" <<EOF
[Desktop Entry]
Name=Wootility
Comment=Wootility Launcher
GenericName=Wootility
Exec=${HOME}/appimages/wootility-latest.appimage
Type=Application
StartupNotify=false
StartupWMClass=Wootility
EOF
17 changes: 15 additions & 2 deletions src/bin/appimage-apps/04-r2modman.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
RTWOMODMAN_VERSION="3.1.54"

# Parent Path
PARENT_PATH="/opt/appimages"
PARENT_PATH="/home/${USER}/appimages"

# Appimage path
APPIMAGE_PATH="${PARENT_PATH}/r2modman-latest.appimage"
Expand All @@ -31,5 +31,18 @@ URL="https://gcdn.thunderstore.io/live/repository/packages/ebkr-r2modman-${RTWOM
)

# Set permissions
sudo chown root:root "${APPIMAGE_PATH}"
sudo chown "${USER}:${USER}" "${APPIMAGE_PATH}"
sudo chmod 755 "${APPIMAGE_PATH}"

APPLICATIONS_PATH="${HOME}/.local/share/applications"
mkdir -p "${APPLICATIONS_PATH}"
cat > "${APPLICATIONS_PATH}/r2modman-launcher.desktop" <<EOF
[Desktop Entry]
Name=R2modman
Comment=R2modman Launcher
GenericName=R2modman
Exec=${HOME}/appimages/r2modman-latest.appimage --no-sandbox
Type=Application
StartupNotify=false
StartupWMClass=R2modman
EOF
27 changes: 25 additions & 2 deletions src/bin/appimage-apps/10-curseforge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,19 @@
CURSEFORGE_VERSION="latest"

# Parent Path
PARENT_PATH="/opt/appimages"
PARENT_PATH="/home/${USER}/appimages"

# Appimage path
APPIMAGE_PATH="${PARENT_PATH}/curseforge-latest.appimage"

# Icon path
ICON_PATH="${HOME}/.local/share/icons/hicolor/256x256/apps/curseforge.png"

# Prep parent folder
if [[ ! -d "${PARENT_PATH}" ]]; then
mkdir -p "${PARENT_PATH}"
fi
mkdir -p "$(dirname "${ICON_PATH}")"

URL="https://curseforge.overwolf.com/downloads/curseforge-${CURSEFORGE_VERSION}-linux.zip"

Expand All @@ -28,13 +32,32 @@ URL="https://curseforge.overwolf.com/downloads/curseforge-${CURSEFORGE_VERSION}-
# shellcheck disable=SC2010
PACKAGE=$(ls | grep 'CurseForge')
sudo mv "${PACKAGE}" "${APPIMAGE_PATH}"
"${APPIMAGE_PATH}" --appimage-extract >/dev/null
cp squashfs-root/usr/share/icons/hicolor/256x256/apps/curseforge.png "${ICON_PATH}"
rm -rf squashfs-root
cd /tmp || exit
rm -rf /tmp/curseforge
)

APPLICATIONS_PATH="${HOME}/.local/share/applications"
mkdir -p "${APPLICATIONS_PATH}"
cat > "${APPLICATIONS_PATH}/curseforge-wayland.desktop" <<EOF
[Desktop Entry]
Name=CurseForge (Wayland)
Comment=CurseForge Addons
GenericName=CurseForge
Exec=${HOME}/appimages/curseforge-latest.appimage --ozone-platform=wayland --ozone-platform-hint=auto --enable-features=UseOzonePlatform,WaylandWindowDecorations %U
Icon=curseforge
Type=Application
StartupNotify=false
StartupWMClass=CurseForge
MimeType=x-scheme-handler/cfauth;
EOF

# Set permissions
sudo chown root:root "${APPIMAGE_PATH}"
sudo chown "${USER}:${USER}" "${APPIMAGE_PATH}"
sudo chmod 755 "${APPIMAGE_PATH}"
sudo chown "${USER}:${USER}" "${ICON_PATH}"

# Set login auth redirect
xdg-mime default curseforge.desktop x-scheme-handler/cfauth
Expand Down
59 changes: 59 additions & 0 deletions src/bin/appimage-apps/11-archon.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#!/usr/bin/env bash

# Version
ARCHON_VERSION="9.6.80"

# Parent Path
PARENT_PATH="/home/${USER}/appimages"

# AppImage path
APPIMAGE_PATH="${PARENT_PATH}/archon-lite-latest.appimage"

# Prep parent folder
if [[ ! -d "${PARENT_PATH}" ]]; then
mkdir -p "${PARENT_PATH}"
fi

URL="https://github.com/RPGLogs/Uploaders-archon-lite/releases/download/v${ARCHON_VERSION}/archon-lite-v${ARCHON_VERSION}.AppImage"

# Archon client
curl -L -o "${APPIMAGE_PATH}" "${URL}"

# Set permissions
chmod 755 "${APPIMAGE_PATH}"

APPLICATIONS_PATH="${HOME}/.local/share/applications"
ICONS_PATH="${HOME}/.local/share/icons/hicolor/512x512/apps"
ARCHON_ICON_PATH="${ICONS_PATH}/archon.png"
mkdir -p "${APPLICATIONS_PATH}"
cat > "${APPLICATIONS_PATH}/archon.desktop" <<EOF
[Desktop Entry]
Name=Archon
Comment=Archon Client
GenericName=Archon
Exec=${HOME}/appimages/archon-lite-latest.appimage --no-sandbox
Icon=archon
Type=Application
StartupNotify=false
StartupWMClass=Archon
EOF

if [[ ! -f "${ARCHON_ICON_PATH}" ]]; then
TEMP_DIR=$(mktemp -d) || exit 1
trap 'rm -rf "${TEMP_DIR}"' EXIT
if ! (
cd "${TEMP_DIR}" || exit
"${APPIMAGE_PATH}" --appimage-extract \
"usr/share/icons/hicolor/512x512/apps/archon-lite.png" >/dev/null
); then
printf 'Failed to extract Archon icon from %s\n' "${APPIMAGE_PATH}" >&2
exit 1
fi
EXTRACTED_ICON="${TEMP_DIR}/squashfs-root/usr/share/icons/hicolor/512x512/apps/archon-lite.png"
if [[ ! -f "${EXTRACTED_ICON}" ]]; then
printf 'Archon icon was not found in %s\n' "${APPIMAGE_PATH}" >&2
exit 1
fi
mkdir -p "${ICONS_PATH}" &&
cp "${EXTRACTED_ICON}" "${ARCHON_ICON_PATH}" || exit 1
fi
24 changes: 0 additions & 24 deletions src/bin/appimage-apps/11-wcl.sh

This file was deleted.

24 changes: 0 additions & 24 deletions src/bin/appimage-apps/12-ascension.sh

This file was deleted.

17 changes: 15 additions & 2 deletions src/bin/appimage-apps/13-wowup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
WOWUP_VERSION="2.20.0"

# Parent Path
PARENT_PATH="/opt/appimages"
PARENT_PATH="/home/${USER}/appimages"

# Appimage path
APPIMAGE_PATH="${PARENT_PATH}/wowup-client-latest.appimage"
Expand All @@ -20,5 +20,18 @@ URL="https://github.com/WowUp/WowUp.CF/releases/download/v${WOWUP_VERSION}/WowUp
sudo curl -L -o "${APPIMAGE_PATH}" "${URL}"

# Set permissions
sudo chown root:root "${APPIMAGE_PATH}"
sudo chown "${USER}:${USER}" "${APPIMAGE_PATH}"
sudo chmod 755 "${APPIMAGE_PATH}"

APPLICATIONS_PATH="${HOME}/.local/share/applications"
mkdir -p "${APPLICATIONS_PATH}"
cat > "${APPLICATIONS_PATH}/wowup-client.desktop" <<EOF
[Desktop Entry]
Name=WoWUP
Comment=WoWUP Client
GenericName=WoWUP
Exec=${HOME}/appimages/wowup-client-latest.appimage
Type=Application
StartupNotify=false
StartupWMClass=WoWUP
EOF
17 changes: 15 additions & 2 deletions src/bin/appimage-apps/14-weakauras.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
WEAKAURAS_VERSION="5.2.7"

# Parent Path
PARENT_PATH="/opt/appimages"
PARENT_PATH="/home/${USER}/appimages"

# Appimage path
APPIMAGE_PATH="${PARENT_PATH}/weakauras-client-latest.appimage"
Expand All @@ -20,5 +20,18 @@ URL="https://github.com/WeakAuras/WeakAuras-Companion/releases/download/v${WEAKA
sudo curl -L -o "${APPIMAGE_PATH}" "${URL}"

# Set permissions
sudo chown root:root "${APPIMAGE_PATH}"
sudo chown "${USER}:${USER}" "${APPIMAGE_PATH}"
sudo chmod 755 "${APPIMAGE_PATH}"

APPLICATIONS_PATH="${HOME}/.local/share/applications"
mkdir -p "${APPLICATIONS_PATH}"
cat > "${APPLICATIONS_PATH}/weakauras-client.desktop" <<EOF
[Desktop Entry]
Name=Weakauras
Comment=Weakauras Launcher
GenericName=Weakauras
Exec=${HOME}/appimages/weakauras-client-latest.appimage
Type=Application
StartupNotify=false
StartupWMClass=Weakauras
EOF
17 changes: 15 additions & 2 deletions src/bin/appimage-apps/20-exiled-exchange.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
EXILED_EXCHANGE_VERSION="0.6.2"

# Parent Path
PARENT_PATH="/opt/appimages"
PARENT_PATH="/home/${USER}/appimages"

# Appimage path
APPIMAGE_PATH="${PARENT_PATH}/exiled-exchange-2-latest.appimage"
Expand All @@ -20,5 +20,18 @@ URL="https://github.com/Kvan7/Exiled-Exchange-2/releases/download/v${EXILED_EXCH
sudo curl -L -o "${APPIMAGE_PATH}" "${URL}"

# Set permissions
sudo chown root:root "${APPIMAGE_PATH}"
sudo chown "${USER}:${USER}" "${APPIMAGE_PATH}"
sudo chmod 755 "${APPIMAGE_PATH}"

APPLICATIONS_PATH="${HOME}/.local/share/applications"
mkdir -p "${APPLICATIONS_PATH}"
cat > "${APPLICATIONS_PATH}/exiled-exchange.desktop" <<EOF
[Desktop Entry]
Name=ExiledExchange
Comment=Exiled Exchange 2 Client
GenericName=ExiledExchange
Exec=${HOME}/appimages/exiled-exchange-2-latest.appimage --no-sandbox
Type=Application
StartupNotify=false
StartupWMClass=ExiledExchange
EOF
2 changes: 1 addition & 1 deletion src/bin/appimage-apps/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
"${SCRIPT_DIR}"/03-wootility.sh
"${SCRIPT_DIR}"/04-r2modman.sh
"${SCRIPT_DIR}"/10-curseforge.sh
"${SCRIPT_DIR}"/11-wcl.sh
"${SCRIPT_DIR}"/11-archon.sh
"${SCRIPT_DIR}"/12-ascension.sh
"${SCRIPT_DIR}"/13-wowup.sh
"${SCRIPT_DIR}"/14-weakauras.sh
Expand Down
Loading
Loading