Compton compositor

Feel free to talk about anything and everything in this board...
efgee
Expert
Posts: 115
Joined: 29 Dec 2013, 20:58

Compton compositor

Postby efgee » 22 Jan 2014, 07:45

If you guys want shadows and stuff on your windows try compton.
Compton is a lightweight, standalone composite manager.

Code: Select all

makesb compton

and then call it with

Code: Select all

compton -c

to get shadows.

There are tons of options listed here:
https://wiki.archlinux.org/index.php/Compton

Have fun.

Scooby
Site Admin
Posts: 826
Joined: 09 Sep 2013, 16:52

Re: Compton compositor

Postby Scooby » 22 Jan 2014, 22:04

Tried it and I like it.

Do you have a good compton.conf?

Tested the one at arch but could not see any difference
although the tip on disabling shadow of conky was very good.

*edit* seems like it was when I started copton with -b as daemon I got problem.
No shading. with -c OK. How to use with -b?

ncmprhnsbl
Competent
Posts: 36
Joined: 09 Nov 2013, 22:44

Re: Compton compositor

Postby ncmprhnsbl » 22 Jan 2014, 22:56

i,ve been using compton-git with openbox for a while with no real problems..
heres my config : .compton.conf ....start line: compton --config ~/.compton.conf &

Code: Select all

# Shadow
shadow = true;
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 = [ "n:e:Notification" ];
# shadow-exclude = "n:e:Notification";
shadow-ignore-shaped = true;

# Opacity
menu-opacity = 0.8;
#inactive-opacity = 0.8;
frame-opacity = 0.6;
#inactive-opacity-override = true;

# Fading
fading = true;
# fade-delta = 30;
fade-in-step = 0.03;
fade-out-step = 0.03;
# no-fading-openclose = true;

# Other
mark-wmwin-focused = true;
mark-ovredir-focused = true;
#detect-rounded-corners = true;

# Window type settings
wintypes:
{
  tooltip = { fade = true; shadow = false; opacity = 0.75; };
};


heres the sample.conf from https://github.com/chjj/compton which is more up to date.. adjust to your liking..

Code: Select all

# Shadow
shadow = true;
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 = 0.8;
# 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 = true;
# fade-delta = 30;
fade-in-step = 0.03;
fade-out-step = 0.03;
# no-fading-openclose = true;
fade-exclude = [ ];

# 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; };
};

also, compton includes compton-trans which gives you ondemand transparency eg i made some keybinds to change window opacity:

Code: Select all

    <keybind key="A-x">
      <action name="Execute">
        <command>compton-trans -s -o 70</command>
      </action>
    </keybind>
    <keybind key="A-c">
      <action name="Execute">
        <command>compton-trans -s -o 100</command>
      </action>
    </keybind>

Scooby
Site Admin
Posts: 826
Joined: 09 Sep 2013, 16:52

Re: Compton compositor

Postby Scooby » 23 Jan 2014, 12:30

Tried it, but didnt like opacity settings.

Geany was very transparent :(

rgb1
Competent
Posts: 37
Joined: 07 Oct 2013, 03:49

Re: Compton compositor

Postby rgb1 » 25 Jan 2014, 03:20

Here is a config that could be of use. It is document centric I suppose. It dims the inactive widows when the active window is in focus.

Code: Select all

shadow = false;

inactive-dim = 0.3;
inactive-dim-fixed = true;

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;

focus-exclude = [ "name = 'Notification'", "class_g ?= 'Notify-osd'", "class_g = 'Cairo-clock'", "class_g = 'i3bar'", "class_g = 'URxvt'" ];
detect-transient = true;
detect-client-leader = true;
invert-color-include = [ ];

glx-copy-from-front = false;

glx-swap-method = "undefined";


efgee
Expert
Posts: 115
Joined: 29 Dec 2013, 20:58

Re: Compton compositor

Postby efgee » 25 Jan 2014, 04:12

I use the config file from the arch webpage I mentioned in the first post.

The only thing I changed was commenting out this line:

Code: Select all

# no-dock-shadow = true;

because I like the shadow of tint2.


Return to “Misc. & Off Topic”

Who is online

Users browsing this forum: No registered users and 3 guests

cron