Choose style:

Author Topic: Compton Config & Short Guide  (Read 1567 times)

0 Members and 1 Guest are viewing this topic.

Offline Elemec

  • Jr. Member
  • **
  • Posts: 40
  • Karma: 5
    • View Profile
  • Peppermint version(s): Peppermint OS 7
Compton Config & Short Guide
« on: October 06, 2016, 11:00:05 am »
Hi, Elemec here, and i've found that there isn't a compton config around this forum (At least not that i've found) so i decided to show my config (which is a mix of two different configs from two different forums for two different distros  ??? in a way it won't break, rather, it works nicely and blends well.)

It's not hard to do, installing compton is a matter of Synaptic "Search for compton" and then Mark for install, or sudo apt-get install compton.
Compton is now installed, you may open a terminal and type "compton" and see if it works, if nothing goes wrong, you'll have compton on, but it has no config, so it's sorta useless, for now. This was a test because some people have problems with compton even without configs.

Now, it's the fun part. Go to your home folder, and look for the .config folder. Going there, you'll make an empty archive named compton.conf and copy-paste this code :
Spoiler (click here to view / hide)
#################################################################################################
#                                                                                               #
#                               INSTALLATION INSTRUCTIONS                                       #
#                                                                                               #
# Step 1 - Install Compton by opening your terminal, and enter the following command...         #
#                                                                                               #
#          sudo apt-get install compton                                                         #
#                                                                                               #
# Step 2 - Open your File Manager, click the View tab, and click Show Hidden.                   #
#          - Open the .config folder                                                            #
#          - Copy and paste this file into the .config folder.                                  #
#          - Make sure the file is named compton.conf                                           #
#          - You can close the File Manager now if you wish.                                    #
#                                                                                               #
# IMPORTANT! You can now try Compton BEFORE making it permanent. That way, you will see if      #
#            it causes any adverse effects on your system. To try Compton...                    #
#            - Open your menu and click Run.                                                    #
#            - In the window that pops up, type compton (all lower case), and hit Enter.        #
#            - Your screen may reset for a moment and reappear. Now try opening your menu,      #
#              and open some apps; such as, the file manager, terminal, Firefox, etc...         #
#            - If everything is working normally (apart from the expected shadows and fading),  #
#              proceed to Step 3. If you do have any adverse effects, log out of your computer. #
#              When you log back in, everything should return to normal. Remove Compton from    #
#              your system if you wish.                                                         #
#                                                                                               #                                                                                   
# Step 3 - Return to your terminal, and enter the following command...                          #
#                                                                                               #
#          sudo leafpad ~/.config/lxsession/LXDE/autostart                                      #
#                                                                                               #
#          That will open your autostart configuration file. We want Compton to start when      #
#          the computer starts, so simply add the following command to the autostart file...    #
#                                                                                               #
#          @compton                                                                             #
#                                                                                               #
#          Close the file, and save the changes when asked.                                     #
#                                                                                               #
# Step 4 - Log out of your computer, and log back in. Compton should now be actively working.   #
#          You can change the parameters of this file to suit your taste.                       #
#                                                                                               #
#################################################################################################

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

# These are important. The first one enables the opengl backend. The last one is the vsync method. Depending on the driver you might need to use a different method.
# The other options are smaller performance tweaks that work well in most cases.
# You can find the rest of the options here: https://github.com/chjj/compton/wiki/perf-guide, and here: https://github.com/chjj/compton/wiki/vsync-guide

# Shadow
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 = 12; # The blur radius for shadows. (default 12)
shadow-offset-x = -30; # The left offset for shadows. (default -15)
shadow-offset-y = -30; # The top offset for shadows. (default -15)
shadow-exclude = [ "n:e:Notification", "g:e:Synapse", "g:e:Conky", "n:w:*Firefox*", "n:w:*Chromium*", "class_g ?= 'Xfce4-notifyd'", "class_g ?= 'Xfce4-power-manager'"];

# Fading
#fading = true; # Fade windows during opacity changes.
#fade-delta = 5; # 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).
# no-fading-openclose = true; # Fade windows in/out when opening/closing

#detect-rounded-corners = true;
### highlighted top window rest dimmed
inactive-dim = 0.2;
inactive-dim-fixed = true;

# Window type settings
wintypes:
{
  tooltip = { fade = true; shadow = true; };
};
[close]

The start is a bit messy, but it's just to get you to know a bit more detailed(ly) how to do everthing there.
Kudos to VSIDO forum guys and Wattos forum guys.

As always, if you want to remove something or add to your own config, be sure to do! This is just a small guideline on how Compton can end up being like.
« Last Edit: October 06, 2016, 11:01:37 am by Elemec »