Difference between pages "Package:Compton" and "User talk:Duncan.britton"

From Funtoo
(Difference between pages)
Jump to navigation Jump to search
m (spaces right after the | in fancynote will cause things to look pre-formatted; fixing.)
 
 
Line 1: Line 1:
{{Ebuild
{{Thankyou|adding content to the wiki|[[User:Threesixes|Threesixes]] ([[User talk:Threesixes|talk]])}}
|Summary=A compositor for X.
|CatPkg=x11-misc
|Maintainer=
|Homepage=https://www.github.com/chjj/compton/
}}
== History and background ==
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 ==
::wait wait a second  http://www.funtoo.org/Special:RecentChanges <--- can u make bigger changes, like adding content, and try avoid spamming this plz.  i hate it when i screw up, and notice it immediately after a commit because of this.  im just making sure you're aware that you're massively spamming logs.  [[User:Threesixes|Threesixes]] ([[User talk:Threesixes|talk]]) 23:47, 22 September 2014 (UTC)
To install compton, just emerge it:
<console>
###i## emerge -av compton
</console>


== Configuration ==
I am sorry if I have caused you any inconvenience. However, I am adding all Templates on the wiki to a Category:Template. Because of this, I have to add [[Category:Template]] to each Template -- hence the spamming of the log. Is it okay with you if I finish up (I will then be done spamming, I promise.)?
=== 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:
Best,
<console>
Duncan
$##i## compton-convgen -f sigma=3 --dump-compton gaussian 13
</console>


This should output some long string of values that begins with:
Duncan, it is not really that helpful to add Templates to a Template category. They are all in their own namespace and it is easy to find them using this link: http://www.funtoo.org/index.php?title=Special%3AAllPages&from=&to=&namespace=10
<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>


==== Applying the custom blur kernel to compton ====
I did not know about this namespaces tool. Should I remove all of the templates from that category that I created?
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 actions.


[[Category:Desktop]]
Yeah, probably. In MediaWiki, generally any "Foo:" (with colon) prefix means it's in a separate namespace. This means it's easy to find all pages in a namespace using the All Pages link.
{{EbuildFooter}}

Revision as of 05:07, September 25, 2014

Example sunflower image
A little thank you...
for adding content to the wiki.
hugs, Threesixes (talk)


wait wait a second http://www.funtoo.org/Special:RecentChanges <--- can u make bigger changes, like adding content, and try avoid spamming this plz. i hate it when i screw up, and notice it immediately after a commit because of this. im just making sure you're aware that you're massively spamming logs. Threesixes (talk) 23:47, 22 September 2014 (UTC)

I am sorry if I have caused you any inconvenience. However, I am adding all Templates on the wiki to a Category:Template. Because of this, I have to add to each Template -- hence the spamming of the log. Is it okay with you if I finish up (I will then be done spamming, I promise.)?

Best, Duncan

Duncan, it is not really that helpful to add Templates to a Template category. They are all in their own namespace and it is easy to find them using this link: http://www.funtoo.org/index.php?title=Special%3AAllPages&from=&to=&namespace=10

I did not know about this namespaces tool. Should I remove all of the templates from that category that I created?

Yeah, probably. In MediaWiki, generally any "Foo:" (with colon) prefix means it's in a separate namespace. This means it's easy to find all pages in a namespace using the All Pages link.