Skip to content
TheChatArchiveThe Chat Archive
gpt-4-0314· openaiHugging Face Suzhen/CodeChat

using a bash script on arch linux how can i add non steam game artwork to my shortcuts…

  1. User

    using a bash script on arch linux how can i add non steam game artwork to my shortcuts ive created heres my code i also want it auto matic ..also how can i force a entry to use fforce compatability?

  2. Assistant

    To add non-Steam game artwork to your shortcuts on Arch Linux using a bash script, you can perform the following steps:

    1. Create custom image files for your non-Steam games. They should be in the following format:

      • header.jpg for the banner in the Steam library
      • icon.jpg for the icon in the Steam library
      • library_600x900.jpg for the portrait image in the library
      • logo.png (optional) for the logo shown on the store page in the client
      • For example, if you want to customize the game MyGame, you can create MyGame_header.jpg, MyGame_icon.jpg, and MyGame_library_600x900.jpg. Please note that Steam expects the images to be in specific sizes, for example, header.jpg should be 460x215 pixels and library_600x900.jpg should be 600x900 pixels.
    2. Locate your Steam installation path. For example, it might be at:

      ~/.steam/steam/
      
    3. Locate your Steam user data folder using the Steam ID number of your account. The user data folder is typically found here:

      ~/.steam/steam/userdata/YourSteamID/
      
    4. In the user data folder, find the folder called config and then the grid subfolder:

      ~/.steam/steam/userdata/YourSteamID/config/grid/
      
    5. Copy the custom image files for your non-Steam games into the grid folder.

    6. Create a bash script (e.g., update_steam_artwork.sh) to automate the process of finding the correct folders and copying the custom images. Here's a sample script:

      #!/bin/bash
      
      # Set the path to your custom game images
      IMAGE_PATH="/path/to/your/custom/game/images"
      
      # Set your Steam ID
      STEAM_ID="123456789"
      
      # Set the Steam installation path
      STEAM_PATH="~/.steam/steam/userdata/$STEAM_ID/config/grid/"
      
      # Copy the custom game images to the Steam grid folder
      cp -r "$IMAGE_PATH/"*.jpg "$IMAGE_PATH/"*.png "$STEAM_PATH"
      

      Replace /path/to/your/custom/game/images with the path to the folder where you store your custom image files and 123456789 with your actual Steam ID.

    7. Make the script executable with:

      chmod +x update_steam_artwork.sh
      
    8. Execute the script to automate the process:

      ./update_steam_artwork.sh
      

      This script will copy your custom game images to the Steam grid folder, updating the artwork for your non-Steam games.

    As for forcing an entry to use Proton (assuming you meant Proton for compatibility), you can follow these steps:

    1. Right-click the non-Steam game in your Steam library, and click on Properties.
    2. Check the box 'Force the use of a specific Steam Play compatibility tool' and select the desired version of Proton from the dropdown menu.
    3. Close the Properties window and launch the game.

    Unfortunately, there is no direct way to force the use of Proton through a bash script, as that setting is stored in Steam's internal configuration files.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.