O compton , LXDE e Debian 9

O compton é um compositor leve para LXDE, para instalar ele é bem simples, pois o mesmo se encontra no repositório do Debian.

Para instalar digite no terminal

sudo apt install compton

Após instado, você precisa criar um arquivo de configuração para ele. Vá na sua /home/<usuário>/.config e edite o arquivo compton.conf

ele provavelmente não vai existir, o comando abaixo vai criar/editar ele.

nano compton.conf

O meu Arquivo de config é o a seguir, aqui em meu sistema ele esta funcionando bem.

backend = “glx”;
paint-on-overlay = true;
glx-no-stencil = true;
glx-no-rebind-pixmap = true;
vsync = “opengl-swc”;

menu-opacity = 0.9; #Adicionei isto para deixar transparente os menus, valor 0 a 1

shadow = true; # Enabled client-side shadows on windows.
no-dock-shadow = true; # Avoid drawing shadows on dock/panel windows.
no-dnd-shadow = true; # Don’t draw shadows on DND windows.
clear-shadow = true; # Zero the part of the shadow’s mask behind the window (experimental).
shadow-radius = 7; # The blur radius for shadows. (default 12)
shadow-offset-x = -7; # The left offset for shadows. (default -15)
shadow-offset-y = -7; # The top offset for shadows. (default -15)
shadow-exclude = [
“! name~=””,
“n:e:Notification”,
“n:e:Plank”,
“n:e:Docky”,
“g:e:Synapse”,
“g:e:Kupfer”,
“g:e:Conky”,
“n:w:Firefox“,
“n:w:Chrome“,
“n:w:Chromium“,
“class_g ?= ‘Notify-osd'”,
“class_g ?= ‘Cairo-dock'”,
“class_g ?= ‘Xfce4-notifyd'”,
“class_g ?= ‘Xfce4-power-manager'”
];

fading = true; # Fade windows during opacity changes.
fade-delta = 4; # The time between steps in a fade in milliseconds. (default 10).
fade-in-step = 0.03; # Opacity change between steps while fading in. (default 0.028).
fade-out-step = 0.03; # Opacity change between steps while fading out. (default 0.03).

detect-client-opacity = true; # This prevents opacity being ignored for some apps. For example without this enabled my xfce4-notifyd is 100% opacity no matter what.

wintypes:
{
tooltip = { fade = true; shadow = false; };
};

Salve o arquivo, CTRL – X + Sim

Para iniciar o compton, basta digitar no shell

compton &

Caso deseje iniciar ele automaticamente basta adicionar ele em seu start-up no lxsession

Ou se preferir, vá em seu /home/<nome do usuário>/.config/lxsession/LXDE/ e editar o arquivo autostart adicionando  compton na ultima linha.

Aqui não entendi ainda o porque, precisei adicionar 2 vezes o compton como podem notar na imagem acima. talvez iniciar ele com o @ no começo do nome de algum problema, então adiciona apenas o compton.

segue o man page dele;

Name

compton – a compositor for X11

Synopsis

compton [-d display] [-r radius] [-o opacity] [-l left-offset] [-t top-offset]
[-i opacity] [-e opacity] [-cCfFSdG]

Description

compton is a compositor based on Dana Jansens’ version of xcompmgr (which itself was written by Keith Packard). It includes many improvements over the original xcompmgr, including window frame opacity, inactive window transparency, and shadows on argb windows.

Options

-d displaySpecifies the display to manage.-r radiusSpecifies the blur radius for client-side shadows.-o opacitySpecifies the opacity for client-side shadows.-l left-offsetSpecifies the left offset for client-side shadows.-t top-offsetSpecifies the top offset for client-side shadows.-I fade-in-stepSpecifies the opacity change between steps while fading in.-O fade-out-stepSpecifies the opacity change between steps while fading out.-D fade-deltaSpecifies the time (in milliseconds) between steps in a fade.-cEnable client-side shadows on windows.-fWhen -c is specified, enables a smooth fade effect for transient windows like menus, and for all windows on hide and restore events.-CWhen -c is specified, attempts to avoid painting shadows on panels and docks.-GWhen -c is specified, attempts to avoid painting shadows on drag-and-drop windows.-FWhen -f is specified, also enables the fade effect when windows change their opacity, as with transset(1).-bAttempt to fork to background after registering compositor.-i opacitySpecifies inactive window transparency. (0.1 – 1.0)-e opacitySpecifies window frame transparency. (0.1 – 1.0)-SEnables synchronous operation. Useful for debugging.

Bugs

Please report any you find to https://github.com/chjj/compton.

Authors

xcompmgr, originally written by Keith Packard, with contributions from Matthew Allum, Eric Anholt, Dan Doel, Thomas Luebking, Matthew Hawn, Ely Levy, Phil Blundell, and Carl Worth. Compton by Christopher Jeffrey, based on Dana Jansens’ original work.

Espero que gostem, até a próxima.