Difference between pages "Package:Compton" and "Install/fr/Intro"

(Difference between pages)
 
(Created page with "<noinclude> {{InstallPart|texte d'introduction}} </noinclude> = Installation de Funtoo Linux = __NOTITLE__ == Introduction == {{Warning|Ce document peut contenir des liens ve...")
 
Line 1: Line 1:
{{Ebuild
+
<noinclude>
|Summary=A compositor for X.
+
{{InstallPart|texte d'introduction}}
|CatPkg=x11-misc
+
</noinclude>
|Maintainer=
+
= Installation de Funtoo Linux =
|Homepage=https://www.github.com/chjj/compton/
+
__NOTITLE__
}}
+
== Introduction ==  
== History and background ==  
+
{{Warning|Ce document peut contenir des liens vers des pages en Anglais. }}
Compton was originally created as a fork of Dana Jansen's fork of Xcompmgr. It was refactored and bugs were fixed as it grew into a standalone project. Today it has many improvements and unique features when compared with other lightweight compositors such as Xcompmgr. Here are some of them:
+
* OpenGL backend
+
* Inactive window transparency
+
* Create your own blur kernel and use it to blur unopaque window backgrounds
+
* Custom-colored window drop shadows
+
  
== Installation ==
+
Ce document a été rédigé afin de vous aider à installer Funtoo Linux sur un PC compatible. Ce tutoriel se veut le plus simple et minimaliste possible afin que le système d'exploitation Funtoo Linux soit installé et opérationnel le plus rapidement possible sans trop de difficulté.
To install compton, just emerge it:
+
<console>
+
###i## emerge -av compton
+
</console>
+
  
== Configuration ==
+
Si vous possèdez quelconque expérience avec l'installation de Gentoo Linux, plusieurs étapes vous seront familières. Vous devez cependant passer au travers tout le guide car il y a quelques différences.
=== Creating a custom blur kernel ===
+
The version of compton in the Funtoo repositories comes with another application called <code>compton-convgen</code>. <code>compton-convgen</code> allows you to generate custom blurs for the backgrounds of transparent window borders, menus, etc.  
+
<code>compton-convgen</code> takes the following switches:
+
* <code>-f</code>: This option allows you to changes factors such as the sigma (standard deviation) of the blur kernel. A sigma of three to five looks nice and generates blurs similar to those seen in Windows 7 Aero and in the Ubuntu Unity launcher. To set the sigma value, enter something like: <code>-f sigma=3</code>
+
* <code>--dump-compton</code>: If you add this switch, <code>compton-convgen</code> will format the output in a way that can be used with compton. This is recommended.
+
* <code>type</code>: The type of blur kernel to use. Options include box and gaussian.
+
* <code>width</code>: The width of the blur kernel. As mentioned earlier, if you want an appearance like that of Windows Aero or Ubuntu Unity, a sigma of three to five accompanied by a gaussian with a width and height of 13 does the trick.
+
* <code>height</code>: Not required if you enter height (so long as you want width and height to be equivalent).
+
{{fancynote|The <code>height</code> and <code>width</code> parameters must be odd-numbered.}}
+
  
To build a blur (convolution) kernel of type gaussian with a sigma of three and a height of 13, run the following:
+
{{Note|Si vous installez Funtoo Linux sur une architecture [[Funtoo Linux Installation on ARM|ARM]], s'il vous plaît consuler [[Funtoo Linux Installation on ARM]] car il y a des différences notables concernant le support ARM. }}
<console>
+
$##i## compton-convgen -f sigma=3 --dump-compton gaussian 13
+
</console>
+
 
+
This should output some long string of values that begins with:
+
<console>
+
13,13,0.018316,0.033746,0.055638,0.082085,0.108368,0.128022,0.135335,0.128022,0.108368,0.082085,0.055638,0.033746,0.018316,0.033746,0.062177,0.102512,0.151240,0.199666,0.235877,0.249352,0.235877,0.199666,0.151240,0.102512,0.062177,
+
</console>
+
==== Testing different blur kernels ====
+
Instead of somewhat tediously copying the output of <code>compton-convgen</code> into the <code>.config/compton.conf</code> (see below for more info), you can easily test the blur kernel you have generated by running the following:
+
<console>
+
$##i## compton --backend=glx --blur-background-frame --frame-opacity=0.5 --blur-kern=`compton-convgen -f sigma=<your sigma preference> --dump-compton gaussian <kernel size>`
+
</console>
+
{{note|The <code>`</code> is not the apostrophe (<code>'</code>) rather, it is found in the upper left of your keyboard on the <code>~</code> key (assuming that you have an english layout on your keyboard).}}
+
==== Applying the custom blur kernel to compton ====
+
Now that we have generated our own custom blur kernel, we can add it to our <code>.config/compton.conf</code> so that our transparent windows have blurred backgrounds. To do this, create a line of text in your compton.conf that says:
+
{{file|name=~/.config/compton.conf|desc=|body=
+
blur-kern = "
+
}}
+
Then, copy the output of <code>compton-convgen</code> (minus the trailing comma at the end) to the right side of this line in your <code>.config/compton.conf</code>. After you have copied it over, go back into your <code>compton.conf</code> and add a quote and semicolon to the end of the <code>blur-kern</code> entry. For example:
+
{{file|name=~/.config/compton.conf|desc=|body=
+
blur-kern = "a bunch of numbers and commas that you have pasted in.........";
+
}}
+
Now that the blur-kern is in our <code>compton.conf</code>, we can test it out. Go into your <code>compton.conf</code> again and add the following lines to make window borders transparent:
+
{{file|name=~/.config/compton.conf|desc=|body=
+
blur-kern = "a bunch of numbers and commas that you have pasted in.........";
+
frame-opacity = 0.50;
+
blur-background = true;
+
}}
+
After adding these lines, try launching compton. If you see that the borders of windows are now transparent and blurred, congratulations! If the borders are transparent, but not blurred, check that you entered the lines correctly and then relaunch compton. If that does not work, try adding the line <code>backend = "glx";</code> to your <code>compton.conf</code>. If, after relaunching compton, this does not fix the issue, you may need to look into if your graphics drivers support such features.
+
 
+
==== Blur the background of only certain windows ====
+
If you only want to blur the background of certain windows, say, Conky, Tint2, and URxvt, and not blur the background of all other windows on the desktop, you can do that. First, find the class of the window by installing and running the <code>xprop</code> utility. In a terminal, type
+
<console>
+
$##i## xprop | grep WM_CLASS
+
</console>
+
and then click on a window that you want to find details about. The line that is printed in the console tells you the class of the window you have selected. Now that we know the <code>WM_CLASS</code> of the different windows that we want transparent, we can configure compton to only blur the backgrounds of these windows. Open your <code>.config/compton.conf</code> and add the following:
+
{{file|name=~/.config/compton.conf|desc=|body=
+
...
+
blur-background-exclude = "!(class_g = 'First WM_CLASS you want to have a transparent background' {{!}}{{!}} 'Second WM_CLASS' {{!}}{{!}} 'Third WM_CLASS')";
+
...
+
}}
+
{{note|You can add more than three classes you want to blur backgrounds on, or you can add only one. Also, you can identify windows using means of ID other than <code>WM_CLASS</code>. Check out the [ https://github.com/chjj/compton/blob/master/man/compton.1.asciidoc#FORMAT_OF_CONDITIONS | Compton man page ]}}
+
 
+
=== Drawing custom shadows ===
+
Compton supports casting drop shadows on windows. To enable the default shadows on compton, you can either run it with the <code>-C</code> flag, or you can add the following to your <code>compton.conf</code>:
+
{{file|name=~/.config/compton.conf|desc=|body=
+
enable-shadows = true;
+
}}
+
Some of compton's other settings related to shadows include:
+
* <code>--no-dnd-shadow</code>: When set to true, Compton will not draw shadows on drag and drop windows.
+
* <code>--no-dock-shadow</code>: When true, compton will not draw shadows on toolbars and docks.
+
* <code>--shadow-radius</code>: Takes an integer value. This option, coupled with the <code>--shadow-{x,y}-offset</code> options allows you to change how your shadows are centered / sized around windows.
+
* <code>--shadow-x-offset</code>: This setting allows you to configure how much the shadow will be shifted to the left or the right. If the value is negative, the shadow will be on the left, if the value is positive, the shadow will be shifted to the right.
+
* <code>--shadow-y-offset</code>: Similar in function to the <code>--shadow-x-offset</code> switch, except that it controls the vertical shifting of the shadow. Negative values lead to a shadow cast below a window, while positive values lead to a shadow cast above a window.
+
* <code>--shadow-opacity</code>: A value between 0 and 1 that controls how easy it is to "see through" shadows cast by compton.
+
* <code>--clear-shadow</code>: If you were interested in the transparent and blurred windows above, this option is very useful for you. If this option is set to true, compton will try to remove shadows behind transparent windows.
+
As always, choose the options that you are interested in, add them to your <code>compton.conf</code>, relaunch compton, and see how things look.
+
[[Category:Desktop]]
+
{{EbuildFooter}}
+

Revision as of 15:52, December 20, 2014


Note

This is a template that is used as part of the Installation instructions which covers: texte d'introduction. Templates are being used to allow multiple variant install guides that use most of the same re-usable parts.


Installation de Funtoo Linux

Introduction

Warning

Ce document peut contenir des liens vers des pages en Anglais.

Ce document a été rédigé afin de vous aider à installer Funtoo Linux sur un PC compatible. Ce tutoriel se veut le plus simple et minimaliste possible afin que le système d'exploitation Funtoo Linux soit installé et opérationnel le plus rapidement possible sans trop de difficulté.

Si vous possèdez quelconque expérience avec l'installation de Gentoo Linux, plusieurs étapes vous seront familières. Vous devez cependant passer au travers tout le guide car il y a quelques différences.

Note

Si vous installez Funtoo Linux sur une architecture ARM, s'il vous plaît consuler Funtoo Linux Installation on ARM car il y a des différences notables concernant le support ARM.