Compton-Hintergrundfarbe

5595
simendsjo

Ich habe gerade compton installiert, aber jetzt ist mein Bildschirmhintergrund eher grau als schwarz. Ich verwende i3wm und kein Hintergrundbild. Compton dimmt im Wesentlichen nur inaktive Fenster ab.

Wie kann ich das wieder schwarz machen?

Compton-Konfiguration (noch nicht aufgeräumt):

# Shadow shadow = false;  no-dnd-shadow = true; no-dock-shadow = true; clear-shadow = true; shadow-radius = 7; shadow-offset-x = -7; shadow-offset-y = -7; # shadow-opacity = 0.7; # shadow-red = 0.0; # shadow-green = 0.0; # shadow-blue = 0.0; shadow-exclude = [ "name = 'Notification'", "class_g = 'Conky'", "class_g ?= 'Notify-osd'", "class_g = 'Cairo-clock'" ]; # shadow-exclude = "n:e:Notification"; shadow-ignore-shaped = false; # shadow-exclude-reg = "x10+0+0"; # xinerama-shadow-crop = true;  # Opacity menu-opacity = 0.8; inactive-opacity = 1.0; # active-opacity = 0.8; frame-opacity = 0.7; inactive-opacity-override = false; alpha-step = 0.06; inactive-dim = 0.2; # inactive-dim-fixed = true; # blur-background = true; # blur-background-frame = true; blur-kern = "3x3box" # blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1" # blur-background-fixed = true; blur-background-exclude = [ "window_type = 'dock'", "window_type = 'desktop'" ]; # opacity-rule = [ "80:class_g = 'URxvt'" ];  # Fading fading = false; # fade-delta = 30; fade-in-step = 0.04; fade-out-step = 0.04; # no-fading-openclose = true; fade-exclude = [ "class_g = 'Conky'" ];  # Other backend = "xrender" mark-wmwin-focused = true; mark-ovredir-focused = true; # use-ewmh-active-win = true; detect-rounded-corners = true; detect-client-opacity = true; refresh-rate = 0; vsync = "none"; dbe = false; paint-on-overlay = true; # sw-opti = true; # unredir-if-possible = true; # unredir-if-possible-delay = 5000; # unredir-if-possible-exclude = [ ]; focus-exclude = [ "class_g = 'Cairo-clock'" ]; detect-transient = true; detect-client-leader = true; invert-color-include = [ ]; # resize-damage = 1;  # GLX backend # glx-no-stencil = true; glx-copy-from-front = false; # glx-use-copysubbuffermesa = true; # glx-no-rebind-pixmap = true; glx-swap-method = "undefined"; # glx-use-gpushader4 = true;  # Window type settings wintypes: { tooltip = { fade = true; shadow = false; opacity = 0.75; focus = true; }; }; 
3

2 Antworten auf die Frage

6
entropiece

Es stellt sich heraus, dass die xsetrootVerwendung XSetWindowBackground()zum Einstellen des Hintergrunds und von compton damit nicht kompatibel ist.

Versuchen Sie es hsetrootanstelle von xsetroot(es hat dieselbe Syntax wie bei -solidetc).

Wenn Sie mehr erfahren möchten, lesen Sie den folgenden Compton-Bericht:

https://github.com/chjj/compton/issues/162

Woher bekommst du `hsetroot`? Avindra Goolcharan vor 6 Jahren 0
1
1sloc

Sie legen das Hintergrundbild nicht in compton fest, sondern in Ihrem .xinitrc. Versuchen Sie, Esetroot -s /path/to/your/wallpaper.pngfür ein Hintergrundbild oder xsetroot -solid #CC0000für eine Farbe hinzuzufügen .

Die Sache ist, ich habe das nie eingestellt. i3wm ist standardmäßig auf schwarz eingestellt. Das Einstellen der Farbe mit xsetroot hatte keine Auswirkung - es ist immer noch grau. simendsjo vor 9 Jahren 0
Mit Fluxbox funktionierte `fbsetbg` dort, wo` xsetbg` nicht funktionierte. (Ja, ich stelle ein Hintergrundbild ein, keine Farbe.) joeytwiddle vor 7 Jahren 0