To add non-Steam game artwork to your shortcuts on Arch Linux using a bash script, you can perform the following steps:
-
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.
-
Locate your Steam installation path. For example, it might be at:
~/.steam/steam/
-
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/
-
In the user data folder, find the folder called config and then the grid subfolder:
~/.steam/steam/userdata/YourSteamID/config/grid/
-
Copy the custom image files for your non-Steam games into the grid folder.
-
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.
-
Make the script executable with:
chmod +x update_steam_artwork.sh
-
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:
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.