Thunar create Lutris banners from custom images

For those using the “Thunar” file manager - I wrote a small script that adds a custom action to convert images from within the file manager for use as Lutris banners using “ffmpeg”.

How to,

  1. Open a text editor of choice and add the following,
# Creates a folder name declared in DEST.
# Converts images to Lutris banner size using ffmpeg. (184:69)

mkdir $DEST

# Pass files through ffmpeg and scale to new size, then save to DEST output folder.
for file
    if [ ! -e $file ]
    to_name="$DEST/"$(echo $file | cut -f1 -d.)".jpg"
    ffmpeg -i "${file}" -vf scale=184:69 "${to_name}"
  1. Save the file as “” to “/home/your name/.config/Thunar/custom_actions/” folder.

  2. In Thunar, press “Ctrl H” to show hidden files, then locate the “” file.

  3. Right click on the file and select Properties > Permissions > (tick) “Allow this file to run as a program”, then press close.

  4. In Thunar, go to Edit > Configure custom actions > Press the + on the right of the window.

  5. In the “Basic” tab, give your new action a name “Convert to Lutris banner”, then enter a description.

  6. In the “Command” field, enter the location to the “” file followed by %N.

Example: home/supa/.config/Thunar/custom_actions/ %N

  1. Choose an icon for the action if you wish.

  2. Click on the “Appearance” tab, set “File pattern” as * and tick the “Image Files” button. Press “OK” and “Close”.

Now, when you right click on images you’d like to create to Lutris banners, you will see your new custom action in the menu. Convert and use as you wish. Your converted images will appear in the “Lutris_converted” folder.

Hope this helps. \m/

1 Like