Skip to content
The Chat Archive
Human-written demonstration (OpenAssistant volunteers)· OpenAssistant (human-written) OpenAssistant Conversations (oasst2)

How would I make a procedurally generated desktop background on Linux?

In OpenAssistant data, “assistant” turns were written by human volunteers as demonstrations. They are not model outputs.
  1. User

    How would I make a procedurally generated desktop background on Linux?

  2. Assistant

    Here's a script to do so:

    import numpy as np
    from PIL import Image
    
    def generate_background():
        # Generate a random array of RGB values
        rgb = np.random.randint(0, 256, size=(1080, 1920, 3), dtype=np.uint8)
        
        # Create an image from the array
        img = Image.fromarray(rgb)
        
        # Save the image to disk
        img.save("background.jpg")
        
        # Set the image as your desktop background
        # Replace "feh" with your preferred tool for setting the desktop background
        # on your Linux system
        !feh --bg-fill background.jpg
    
    if __name__ == "__main__":
        generate_background()
    
    

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