Skip to content
TheChatArchiveThe Chat Archive
Geminigemini-2.5-flash-preview-04-17· GoogleHugging Face LMArena Human Preference 140K

create for me most lightweight config for picom for i3 archlinux

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Qwenqwen3-235b-a22b-no-thinking’s answer.
  1. User

    create for me most lightweight config for picom for i3 archlinux

  2. Gemini Assistant

    Okay, let's create a picom.conf aimed at being as lightweight as possible for an i3 setup on Arch Linux.

    This configuration will:

    1. Disable all visually heavy effects (shadows, fading, blur, corner rounding).
    2. Use the xrender backend by default, which is often the most compatible and sometimes the least resource-intensive depending on your hardware and drivers (though glx can be faster on good setups - we'll mention this).
    3. Disable VSync within picom, relying on driver/kernel VSync if needed.
    4. Allow applications to set their own opacity (e.g., terminals like Alacritty, Kitty).
    5. Prevent compositing for fullscreen windows if possible (unredir-if-possible).
    6. Ensure basic window type handling without adding extra effects.

    How to use:

    1. Save the following content as ~/.config/picom/picom.conf.
    2. If you don't have the picom directory in ~/.config, create it: mkdir -p ~/.config/picom.
    3. Run picom: picom --config ~/.config/picom/picom.conf.
    4. To start it automatically with i3, add this line to your ~/.config/i3/config: exec --no-startup-id picom --config ~/.config/picom/picom.conf (Restart i3 for the change to take effect, usually Mod+Shift+R).
    # ~/.config/picom/picom.conf
    #
    # Most Lightweight Picom Config for i3 on Arch Linux
    # Disables all heavy effects and aims for minimal overhead.
    
    # GENERAL SETTINGS
    ###############################################################################
    
    # Backend to use: "xrender", "glx", "vsync".
    # xrender is generally the most compatible and often lightweight baseline.
    # glx/opengl might be faster on systems with good graphics drivers.
    backend = "xrender";
    
    # Enable VSync. Set to false to rely on driver/kernel VSync or disable.
    # Disabling in picom is often part of a lightweight strategy, relying on
    # the system/driver to handle it.
    vsync = false;
    
    # Use specified refresh rate. 0 for auto-detect or rely on vsync setting.
    refresh-rate = 0;
    
    # Try to unredirect fullscreen windows.
    # Great for performance - picom won't composite when a window is fullscreen.
    unredir-if-possible = true;
    
    # Detect and use client-side opacity. ESSENTIAL for modern terminals
    # like Alacritty, Kitty, etc., that set their own opacity.
    detect-client-opacity = true;
    
    # Mark focused windows. Required for correct behavior in i3.
    mark-wmwin-focused = true;
    mark-ovredir-focused = true;
    
    # Detect rounded corners (low cost).
    detect-rounded-corners = true;
    
    # Detect window transients (dialogs, etc.).
    detect-transient = true;
    
    # Detect window leaders.
    detect-client-leader = true;
    
    
    # SHADOWS
    ###############################################################################
    
    # Disable shadows completely for performance.
    shadow = false;
    
    # Remove all shadow options as shadow is disabled:
    # shadow-radius = 7;
    # shadow-offset-x = -7;
    # shadow-offset-y = -7;
    # shadow-opacity = 0.7;
    # shadow-exclude = [ "n:e:Notification" ];
    # shadow-ignore-shaped = false;
    
    
    # FADING
    ###############################################################################
    
    # Disable fading effects for performance.
    fading = false;
    
    # Remove all fading options as fading is disabled:
    # fade-in-step = 0.03;
    # fade-out-step = 0.03;
    # fade-delta = 10;
    # fade-exclude = [];
    
    
    # OPACITY
    ###############################################################################
    
    # Set opacity for inactive windows. 1 is fully opaque.
    # Using 1 is most performant.
    inactive-opacity = 1;
    
    # Set opacity for window frames. 1 is fully opaque.
    frame-opacity = 1;
    
    # Set opacity for focused windows. 1 is fully opaque.
    active-opacity = 1;
    
    # Don't override inactive opacity if client sets it.
    inactive-opacity-override = false;
    
    # Opacity rules (none needed for this lightweight config)
    # opacity-rule = [ ];
    
    
    # BLUR
    ###############################################################################
    
    # Disable blur effects for performance.
    blur: {
      enabled = false;
    }
    
    # Remove all blur options as blur is disabled:
    # blur-method = "dual_kawase";
    # blur-strength = 5;
    # blur-kern = "3x3box";
    # blur-exclude = [];
    
    
    # CORNER ROUNDING
    ###############################################################################
    
    # Disable picom-added corner rounding.
    corner-radius = 0;
    
    # Remove all corner rounding options as it's disabled:
    # rounded-corners-exclude = [];
    
    
    # DITHERING
    ###############################################################################
    
    # Disable dithering for performance.
    dither-rgb = false;
    dither-argb = false;
    
    
    # WINDOW TYPE SETTINGS
    ###############################################################################
    
    # Ensure no heavy effects are applied per window type.
    # Mostly belt-and-suspenders as effects are disabled globally, but good practice.
    wintypes: {
      tooltip = {
        shadow = false;
        fade = false;
        opacity = 1;
        focus = true;
      };
      notification = {
        shadow = false;
        fade = false;
        opacity = 1;
        focus = true;
      };
      dock = {
        shadow = false;
        fade = false;
        opacity = 1;
      };
      dropdown_menu = {
        shadow = false;
        fade = false;
        opacity = 1;
      };
      popup_menu = {
        shadow = false;
        fade = false;
        opacity = 1;
      };
      utility = {
        shadow = false;
        fade = false;
        opacity = 1;
      };
      dialog = {
        shadow = false;
        fade = false;
        opacity = 1;
      };
      menu = {
        shadow = false;
        fade = false;
        opacity = 1;
      };
      # Ensure normal windows respect global settings (like detect-client-opacity)
      # and don't get extra effects.
      normal = {
        shadow = false;
        fade = false;
        opacity = 1;
      };
      # Desktop windows (wallpaper) should not be composited with effects.
      desktop = {
        shadow = false;
        fade = false;
        opacity = 1;
      };
    }
    
    # OTHER SETTINGS
    ###############################################################################
    
    # Logging level. Keep it minimal unless debugging.
    log-level = "warn";
    
    # Write PID file (optional, doesn't impact performance significantly).
    # write-pid-path = "/tmp/picom.pid";
    
    

    This config strips out almost everything except the absolute essentials needed for basic window compositing and handling client-set opacity, making it very lightweight. Remember that the most lightweight option is often not running a compositor at all, but this configuration gets you as close as possible while still getting some basic benefits.

  3. User

    create for me .sh file for choosing either shutdown, restart, sleep, logout for archlinux i3, make it usable for rofi to choose each one of them

  4. Gemini Assistant

    Okay, here is a simple shell script designed to work with Rofi to present options for Shutdown, Restart, Sleep, and Logout on an Arch Linux system using i3.

    1. Create the Script File:

    Save the following content in a file, for example, ~/.config/i3/scripts/power_menu.sh.

    #!/bin/bash
    
    # File: ~/.config/i3/scripts/power_menu.sh
    # Description: Rofi-compatible script to handle
    

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