Website review
This review may include AI-generated content and is not individually verified. Domain, certificate and other facts come from the observed data on this page.
What is picom?
picom is a compositor for X11: a background program that adds visual effects and manages how windows are drawn on screen. It descends from xcompmgr and adds features such as window frame opacity and transparency for inactive windows, according to its manual page at picom(1).
What it actually does
- Draws client-side shadows on windows, with configurable blur radius, opacity and offset.
- Fades windows in and out when they open, close, or change opacity.
- Sets opacity for inactive windows and for window titlebars and borders.
- Can run as a daemon in the background after initialization.
Who it is for
It suits Linux users on X11 who want a lighter, more configurable desktop effect layer than a full desktop environment provides, and who are comfortable editing a config file or passing command-line flags. It is not a window manager and not for Wayland sessions; it works alongside your existing window manager.
How configuration works
Options can be given on the command line (for example --shadow-radius, --shadow-opacity, --fading, --inactive-opacity, --frame-opacity) or placed in configuration files. The manual also covers window rules, animations, blur, shader interface, signals and a D-Bus API, so simple setups stay simple while advanced setups can target specific windows.
Practical next step
Start with defaults and add one effect at a time. If you want inactive-window dimming, the manual discourages the global --inactive-opacity option and recommends window rules instead, which avoids dimming things you want to stay readable, such as video players or terminals you are watching. Compare with your desktop's built-in compositor at KDE or GNOME before switching, since those integrate more tightly with their own window managers.
How do I configure picom using a configuration file?
picom reads its settings from a configuration file rather than requiring you to pass everything on the command line. The man page lists a CONFIGURATION FILES section and says command-line options mirror the file's settings — so the practical approach is to put your persistent preferences in the file and use the command line only for one-off overrides.
Where the file goes
picom looks in standard locations, typically ~/.config/picom/picom.conf (or $XDG_CONFIG_HOME/picom/picom.conf) and /etc/xdg/picom.conf. If you already have a config from compton, picom can often read it, since picom descends from that lineage. Check picom --help for the exact search order on your build.
What goes in it
The file uses simple option = value lines. The options in the man page translate directly:
shadow = true;
shadow-radius = 12;
shadow-opacity = 0.75;
shadow-offset-x = -15;
shadow-offset-y = -15;
fading = true;
fade-in-step = 0.028;
fade-out-step = 0.03;
fade-delta = 10;
frame-opacity = 0.9;
inactive-opacity = 0.9;
Semicolons and # comments are conventional. Values match the ranges documented for each flag (for example, shadow opacity is 0.0–1.0).
Rules vs. global options
The man page discourages inactive-opacity as a global setting and instead points to WINDOW RULES for per-window behavior. Rules let you target specific windows by class, name, role or type, and are the recommended way to set window-specific opacity, shadows or fading. That is the main reason to move beyond a handful of global lines.
A concrete scenario
If you want your terminal slightly transparent but everything else opaque, don't lower inactive-opacity globally. Add a rule matching your terminal's class and set its opacity there, leaving the global value at 1.0. This avoids dimming windows you actually want fully visible.
Next step
Run picom --config ~/.config/picom/picom.conf to test a file explicitly, and watch the output at --log-level=DEBUG while you adjust. Once it behaves, start picom with --daemon (or from your session's autostart) so it forks to the background — note that --daemon only works from the command line, not inside the config file.
How do I set window-specific opacity or other per-window rules in picom?
Use picom's window rules (also called wintypes and rules in the config file) to target specific windows and apply per-window opacity, shadows, fading, and similar properties. The man page's WINDOW RULES section is the authoritative reference; the rule syntax has changed over time, so match the syntax to your installed version.
The basic idea
A rule matches windows by criteria (window class, title, role, etc.) and then assigns effects. In current picom configs, this looks like:
rules = (
{
match = "class_g = 'Firefox'";
opacity = 0.95;
},
{
match = "class_g = 'Alacritty'";
opacity = 0.85;
shadow = false;
},
{
match = "class_g = 'mpv'";
full-shadow = false;
fade = false;
}
);
Older configs used wintypes entries with opacity-rule, shadow-exclude, and similar lists, e.g. opacity-rule = [ "90:class_g = 'Firefox'" ]. If a rule seems ignored, check which syntax your picom version expects—the man page documents the migration path.
Matching the right window
Conditions are built from window properties. Common ones:
class_g/class_i— window class, case-sensitive or insensitivename— window titlerole— window roletype— window type (e.g.dock,desktop,notification)
Operators like =, !=, ~= (regex), and logical &&/|| let you combine them. To find the correct values, run xprop and click the window, then look at WM_CLASS and _NET_WM_WINDOW_TYPE.
Practical notes
- Match on
class_grather than title where possible; titles change as you browse or edit. - Rules are evaluated in order, so put specific matches before broad ones.
- Set per-window opacity here instead of using
--inactive-opacity; the man page explicitly discourages the global option in favor of rules. --frame-opacityapplies to titlebars and borders separately from the window body, so a rule settingopacitywon't necessarily affect the frame.
Next step
Open the installed man page (man picom) and read the WINDOW RULES and FORMAT OF CONDITIONS sections for your version, then test a single rule with picom --config /path/to/picom.conf in the foreground and check the log output. For broader desktop compositor alternatives, see picom on GitHub and Arch Wiki: picom.
What options control shadows, fading, and inactive window transparency in picom?
Shadows, fading, and inactive-window transparency in picom are all controlled through command-line options (or their equivalents in the configuration file). The relevant flags are:
Shadows
-c,--shadow— enables client-side shadows on windows. Desktop windows are excluded unless explicitly requested viawintypes.-r,--shadow-radius=RADIUS— blur radius of the shadow, in pixels (default 12).-o,--shadow-opacity=OPACITY— shadow opacity, from 0.0 to 1.0 (default 0.75).-l,--shadow-offset-x=OFFSET— horizontal shadow offset, in pixels (default -15).-t,--shadow-offset-y=OFFSET— vertical shadow offset, in pixels (default -15).
Fading
-f,--fading— fades windows in and out on open, close, and opacity changes, unless--no-fading-opencloseis used.-I,--fade-in-step=OPACITY_STEP— opacity change per step while fading in, 0.01–1.0 (default 0.028).-O,--fade-out-step=OPACITY_STEP— opacity change per step while fading out, 0.01–1.0 (default 0.03).-D,--fade-delta=MILLISECONDS— time between steps, in milliseconds, greater than 0 (default 10).
Inactive window transparency
-i,--inactive-opacity=OPACITY— opacity for inactive windows, 0.1–1.0 (default 1.0, meaning fully opaque). The documentation discourages this option and instead recommends setting window-specific opacity through the WINDOW RULES section.-e,--frame-opacity=OPACITY— opacity of titlebars and borders, 0.1–1.0, disabled by default. This is related but distinct: it affects window frames rather than inactive content.
A practical way to decide: use --inactive-opacity only for a quick, global dimming of unfocused windows, and move to window rules if you want different behavior per application. For shadows, the four numeric options are independent — changing the radius without adjusting the offsets often produces a shadow that looks detached from the window, so tune them together.
If you run picom as a background process, add -b or --daemon; note that this can only be set from the command line, not in the configuration file. The upstream project is documented at picom(1).
How do I run picom as a background daemon?
Run picom with the -b (or --daemon) flag:
picom -b
According to the picom(1) documentation on picom(1), -b, --daemon forks the process to the background after initialization. One important caveat from that same page: this option can only be set from the command line — setting it in a configuration file has no effect. So a config file that contains daemon = true will not background picom for you.
Next step: make it start automatically
Running picom -b once only lasts for the current session. To have it launch at login, add it to your desktop environment's autostart entries (most X11 environments have an "Autostart Applications" panel or an ~/.config/autostart/ directory), or to your window manager's startup script. If you use a systemd user session, a user service is another common route; check your distribution's documentation for the exact unit setup.
Practical checks
- Confirm it is actually running in the background with
pgrep -a picom. You should see one process; if you see several, you have started it more than once and the extra instances can cause visual artifacts. - If picom exits immediately, run it in the foreground first (
picom) and read the terminal output. Common causes are a missing or malformed config file, or an unsupported backend for your GPU driver. - Verbose logging is easier to inspect when backgrounded. Combine the daemon flag with a log file, for example
picom -b --log-level=WARN --log-file=~/.cache/picom.log, then check that file when something looks wrong. - If you want to stop it, use
pkill picomrather than hunting for a terminal window.
Where the daemon flag fits
| Situation | Command style |
|---|---|
| Quick test, watch errors live | picom (foreground) |
| Normal daily use | picom -b |
| Autostart entry | picom -b with any flags you need |
| Config file | Do not put daemon here; it is ignored |
If you are still deciding on visual options such as shadows, fading or inactive-window opacity, the same manual page lists those flags and the WINDOW RULES section, which the documentation recommends over the older --inactive-opacity approach for per-window settings.
How do I customize picom's visual effects with animations and shaders?
Customizing picom's visual effects means working in three layers: the compositor's built-in options, window rules that target specific windows, and the animation and shader sections for motion and post-processing.
Built-in effects (command line or config file)
- Shadows:
--shadow-radius,--shadow-opacity,--shadow-offset-x,--shadow-offset-y, plus-c/--shadowto enable client-side shadows. Desktop windows (_NET_WM_WINDOW_TYPE_DESKTOP) never get shadows unless you ask for them throughwintypes. - Fading:
-f/--fadingfor open/close and opacity-change fades, tuned by--fade-in-step,--fade-out-step, and--fade-delta(milliseconds between steps). - Transparency:
--inactive-opacityfor inactive windows and--frame-opacityfor titlebars and borders. The man page discourages the global inactive-opacity flag in favor of per-window rules.
Window rules instead of global flags The WINDOW RULES section is the recommended way to set window-specific opacity. Rules have their own syntax, a migration path from older rule formats, and a conditions format you can match on. A practical example: keep a terminal at 0.9 opacity while a video player stays fully opaque, rather than dimming everything with one global value.
Animations The ANIMATIONS section covers common options, presets, and advanced settings, and the page invites you to share your animations. Presets are the sensible starting point; advanced options are for when you want open/close transitions on specific window types rather than everything at once.
Shaders The SHADER INTERFACE section is where you hook in custom GLSL-style effects. Shaders are the heaviest option here — they run per-pixel on the composited output, so test on your GPU before committing. Use them for effects the built-in options can't express, such as custom blur or color transforms. The BLUR section and config file layout are documented separately.
Where the settings live
Everything can go in the configuration file, with one exception: --daemon only works from the command line. --log-level accepts TRACE through ERROR; TRACE generates a huge stream, so pair it with --log-file. -h/--help prints usage embedded in the code, which may be newer than the man page.
A workable next step Start from a preset animation, add one window rule for a single application, and confirm it behaves before adding shaders. If something looks wrong, raise the log level and read the output rather than changing several settings at once. The page's EXAMPLES, SIGNALS, D-BUS API, and SEE ALSO sections are the natural follow-ups for scripting and reloading configs. For the X11 compositing background, X.Org documents the underlying window properties, and the picom page itself is the authoritative reference for option defaults.
User reviews (0)