Twig6943 / org.freedesktop.Platform.VulkanLayer.MangoHud

Home Page:https://flathub.org/apps/details/org.freedesktop.Platform.VulkanLayer.MangoHud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MangoHUD

Configuration

Run this script and it should get flatpak MangoHud working with Goverlay

#!/bin/bash
# Create flatpak MangoHud folder
FLATPAK_MANGOHUD_DIR="/home/$USER/.var/app/org.freedesktop.Platform.VulkanLayer.MangoHud"
mkdir -p "$FLATPAK_MANGOHUD_DIR"
# Check if user has a MangoHud config file in .config/mangohud
CONFIG_DIR="$HOME/.config/MangoHud"
CONFIG_FILE="$CONFIG_DIR/MangoHud.conf"
# Create the .config/MangoHud directory if it doesn't exist
mkdir -p "$CONFIG_DIR"
if [ -f "$CONFIG_FILE" ]; then
    # If MangoHud.conf exists, create a symlink in the flatpak MangoHud directory
    ln -sf "$CONFIG_FILE" "$FLATPAK_MANGOHUD_DIR/MangoHud.conf"
else
    # If MangoHud.conf does not exist, create a blank config file and symlink it
    touch "$FLATPAK_MANGOHUD_DIR/MangoHud.conf"
    ln -sf "$FLATPAK_MANGOHUD_DIR/MangoHud.conf" "$CONFIG_FILE"
fi

echo "Flatpak MangoHud should now work with goverlay."

(Although this isn't the case for most users, please note that if you have flatpak MangoHud installed to another location/drive via a flatpak installation you're going to need to edit the script for it to work as intended.)

Resources