Skip to content

Instantly share code, notes, and snippets.

@Matthew0x
Last active September 13, 2024 20:42
Show Gist options
  • Save Matthew0x/e43aa00de47934e22366cde029f82105 to your computer and use it in GitHub Desktop.
Save Matthew0x/e43aa00de47934e22366cde029f82105 to your computer and use it in GitHub Desktop.
Configuration of Mango Hud on Linux. Fully tested by myself

#published

License

GPLv3

tl;dr - do what you want, I hold no liability for usage/misuage of this note.

Flatpak

References

Mangohud repository Freedesktop repository

Setup

  1. Check the currently installed version of Steam (or other application) using flatpak info then install the SAME version of MangoHud as indicated in the Freedesktop runtime!

    flatpak install org.freedesktop.Platform.VulkanLayer.MangoHud
    

    Check whether and where a specific version is installed

    flatpak info --show-location org.freedesktop.Platform.VulkanLayer.MangoHud
    
  2. (optional) Create a personalised config file (Goverlay recommended!) in ~/.config/MangoHud/MangoHud.conf and copy it over to~/.var/app/com.valvesoftware.Steam/config/MangoHud/MangoHud.conf

    https://raw.githubusercontent.com/flightlessmango/MangoHud/master/data/MangoHud.conf
    
  3. Enable RO permissions (optional) $XDG_CONFIG_HOME stands for $HOME/.config

    flatpak override --user --filesystem=xdg-config/MangoHud:ro
    

    You can later remove it using e.g. Flatseal under "All Applications" and "Filesystem" tab.

  4. (optional) To enable MangoHud for all Steam games (globally):

    flatpak override --user --env=MANGOHUD=1 com.valvesoftware.Steam
    
  5. Run Steam games using e.g.

    mangohud gamemoderun %command% -vulkan
    MANGOHUD=1 gamemoderun %command% -vulkan
    mangohud %command% -vulkan
    

Results

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment