Skip to content

Instantly share code, notes, and snippets.

@richardgv
richardgv / auctex-9999.ebuild
Created January 28, 2012 14:35
app-emacs/auctex-9999 ebuild
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emacs/auctex/auctex-9999.ebuild,v 1.0 2012/01/14 16:09:17 ulm Exp $
EAPI=3
inherit cvs elisp eutils latex-package autotools
DESCRIPTION="Extended support for writing, formatting and using (La)TeX, Texinfo and BibTeX files"
HOMEPAGE="http://www.gnu.org/software/auctex/"
@richardgv
richardgv / compton-bug.txt
Created September 8, 2012 06:17
chjj/compton Issue #31: Debug output of compton & xcompmgr
# original compton, with the bug
# 0x1c00003: Window ID of a window of VLC, and the actual window of file-roller
add_win(0x00c0007c):
XDamageCreate(): Window 0x00c0007c, Damage 0x01600005
add_win(0x00c000c2):
add_win(0x00c000c3):
add_win(0x00c000c4):
add_win(0x00c000c5):
@richardgv
richardgv / compton-border_size-debug.txt
Created September 9, 2012 11:36
chjj/compton: Debug output showing the regions of Chromium window border_size() reports
# 0x00801b43 is the outer frame of Chromium
border_size(0x008000fa): Border width = 0; Reported border rectangles:
Rec #0: 0, 0, 1440, 30
border_size(0x00800432): Border width = 0; Reported border rectangles:
Rec #0: 0, 0, 606, 353
# Here I started Chromium maximized, wrong bounding rectangles reported:
border_size(0x008000fa): Border width = 0; Reported border rectangles:
Rec #0: 0, 0, 1440, 30
@richardgv
richardgv / compton-new.txt
Created September 27, 2012 12:20
chjj/compton: Issue #47: Comparison of pidstat result of old/new compton
Linux 3.5.4-pf (home) 09/27/2012 _x86_64_ (8 CPU)
07:09:38 PM PID %usr %system %guest %CPU CPU Command
07:09:39 PM 11246 0.00 0.00 0.00 0.00 2 compton
07:09:40 PM 11246 1.00 0.00 0.00 1.00 1 compton
07:09:41 PM 11246 1.00 0.00 0.00 1.00 1 compton
07:09:42 PM 11246 1.00 0.00 0.00 1.00 0 compton
07:09:43 PM 11246 0.00 0.00 0.00 0.00 1 compton
07:09:44 PM 11246 1.00 0.00 0.00 1.00 2 compton
07:09:45 PM 11246 1.00 0.00 0.00 1.00 1 compton
@richardgv
richardgv / compton-new.txt
Created September 28, 2012 02:09
chjj/compton: Issue #47: Comparison of pidstat result of old/new compton, another time
Linux 3.5.4-pf (home) 09/28/2012 _x86_64_ (8 CPU)
09:41:36 AM PID %usr %system %guest %CPU CPU Command
09:41:37 AM 14073 0.00 0.00 0.00 0.00 2 compton
09:41:38 AM 14073 1.00 0.00 0.00 1.00 0 compton
09:41:39 AM 14073 1.00 0.00 0.00 1.00 0 compton
09:41:40 AM 14073 1.00 0.00 0.00 1.00 1 compton
09:41:41 AM 14073 1.00 0.00 0.00 1.00 1 compton
09:41:42 AM 14073 1.00 0.00 0.00 1.00 0 compton
09:41:43 AM 14073 2.00 0.00 0.00 2.00 1 compton
@richardgv
richardgv / compton-inactive-shadow-opacity.patch
Created November 22, 2012 13:27
chjj/compton #64: Add --inactive-shadow-opacity.
diff --git a/src/compton.c b/src/compton.c
index 6e2784f..b5b1fa9 100644
--- a/src/compton.c
+++ b/src/compton.c
@@ -1297,10 +1297,13 @@ paint_preprocess(session_t *ps, win *list) {
w->frame_alpha_pict = get_alpha_pict_d(ps, w->frame_opacity);
// Calculate shadow opacity
- if (w->frame_opacity)
- w->shadow_opacity = ps->o.shadow_opacity * w->frame_opacity;
@richardgv
richardgv / lgi-0.6.2.ebuild
Created November 27, 2012 13:49
lgi-0.6.2.ebuild
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
DESCRIPTION="dynamic Lua binding to GObject libraries using GObject-Introspection"
HOMEPAGE="https://github.com/pavouk/lgi"
SRC_URI="mirror://github/pavouk/lgi/${P}.tar.gz"
@richardgv
richardgv / compton-wip.patch
Last active December 10, 2015 09:18
chjj/compton #56: My work in progress (NOT USABLE right now!)
diff --git a/.gitignore b/.gitignore
index 475cacb..a11d54d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -38,4 +38,6 @@ oprofile_data/
compton.plist
callgrind.out.*
man/*.html
+man/*.1
doxygen/
@richardgv
richardgv / compton-select.patch
Created January 1, 2013 12:48
chjj/compton: Patch to use (p)select() instead of (p)poll()
diff --git a/src/compton.c b/src/compton.c
index eff195f..2e43bc8 100644
--- a/src/compton.c
+++ b/src/compton.c
@@ -4672,14 +4672,9 @@ lceil_ntimes(long dividend, long divisor) {
*/
static int
evpoll(session_t *ps, int timeout) {
- struct pollfd ufd = {
- .fd = ConnectionNumber(ps->dpy),
@richardgv
richardgv / compton-libevent.patch
Created January 2, 2013 13:06
chjj/compton: Patch to use libevent for the main loop
diff --git a/Makefile b/Makefile
index 10e6f17..bc0dcd2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,6 @@
+# Use tab to indent recipe lines, spaces to indent other lines, otherwise
+# GNU make may get unhappy.
+
CC ?= gcc