Skip to content

Instantly share code, notes, and snippets.

@richardgv
richardgv / compton-active-dim.patch
Created February 1, 2014 14:09
chjj/compton #173: Add --active-dim support
diff --git a/src/common.h b/src/common.h
index 7786f82..7735184 100644
--- a/src/common.h
+++ b/src/common.h
@@ -587,6 +587,8 @@ typedef struct {
XFixed *blur_kerns[MAX_BLUR_PASS];
/// How much to dim an inactive window. 0.0 - 1.0, 0 to disable.
double inactive_dim;
+ /// How much to dim an (really) active window. 0.0 - 1.0, 0 to disable.
+ double active_dim;
@richardgv
richardgv / compton-xsync-fence.patch
Created March 13, 2014 14:11
chjj/compton #181: Add X Sync fence support
diff --git a/src/common.h b/src/common.h
index e87651c..f20fc58 100644
--- a/src/common.h
+++ b/src/common.h
@@ -89,6 +89,7 @@
#include <X11/extensions/shape.h>
#include <X11/extensions/Xrandr.h>
#include <X11/extensions/Xdbe.h>
+#include <X11/extensions/sync.h>
@richardgv
richardgv / compton-xsync-fence-2.patch
Created March 16, 2014 23:29
chjj/compton #181: Add X Sync fence support, second revision
diff --git a/Makefile b/Makefile
index 701308b..9eb5b7e 100644
--- a/Makefile
+++ b/Makefile
@@ -73,6 +73,11 @@ ifeq "$(NO_DBUS)" ""
OBJS += dbus.o
endif
+# ==== D-Bus ====
+ifeq "$(NO_XSYNC)" ""
@richardgv
richardgv / kernel-3.15-pf2-generic.config
Created July 20, 2014 05:23
Generic kernel-3.15-pf2 configuration
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 3.15.0-pf2 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig"
@richardgv
richardgv / compton-shadow-opacity-factor.patch
Created October 3, 2014 09:49
chjj/compton #232: Add window-type-based shadow opacity
diff --git a/src/common.h b/src/common.h
index 0aa4f18..37faee4 100644
--- a/src/common.h
+++ b/src/common.h
@@ -628,6 +628,8 @@ typedef struct _options_t {
// === Shadow ===
/// Enable/disable shadow for specific window types.
bool wintype_shadow[NUM_WINTYPES];
+ /// Shadow opacity factors for specific window types.
+ double wintype_shadow_opacity_factors[NUM_WINTYPES];
@richardgv
richardgv / gist:e3edbe8bcdcc51900816
Created December 6, 2014 10:34
chjj/compton #243: Sample gdb output when tracing X errors
richard@home ~/git/compton % gdb --args compton -S --show-all-xerrors
GNU gdb (Gentoo 7.8.1 vanilla) 7.8.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
@richardgv
richardgv / compton-glx-prog-win-rule.patch
Created March 8, 2015 13:19
chjj/compton #266: Add --glx-prog-win-rule
diff --git a/compton-chg-saturate-brightness-contrast.glsl b/compton-chg-saturate-brightness-contrast.glsl
new file mode 100644
index 0000000..7bb6811
--- /dev/null
+++ b/compton-chg-saturate-brightness-contrast.glsl
@@ -0,0 +1,55 @@
+uniform float opacity;
+uniform bool invert_color;
+uniform sampler2D tex;
+
@richardgv
richardgv / dwm-6.0-argb-border-color-fix.patch
Created September 9, 2015 00:28
Patch to fix the incorrect ARGB window border color issue in dwm-6.0
--- dwm.c 2011-12-19 23:02:46.000000000 +0800
+++ dwm.new.c 2014-11-08 12:44:10.689875202 +0800
@@ -187,6 +187,7 @@
static void focusmon(const Arg *arg);
static void focusstack(const Arg *arg);
static unsigned long getcolor(const char *colstr);
+static unsigned long getcolor_in_window(const char *colstr, Window w, unsigned long fallback);
static Bool getrootptr(int *x, int *y);
static long getstate(Window w);
static Bool gettextprop(Window w, Atom atom, char *text, unsigned int size);
@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):