Skip to content

Instantly share code, notes, and snippets.

Richard Grenville richardgv

Block or report user

Report or block richardgv

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@richardgv
richardgv / dwm-6.0-argb-border-color-fix.patch
Created Sep 9, 2015
Patch to fix the incorrect ARGB window border color issue in dwm-6.0
View dwm-6.0-argb-border-color-fix.patch
--- 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 / compton-glx-prog-win-rule.patch
Created Mar 8, 2015
chjj/compton #266: Add --glx-prog-win-rule
View compton-glx-prog-win-rule.patch
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 / gist:e3edbe8bcdcc51900816
Created Dec 6, 2014
chjj/compton #243: Sample gdb output when tracing X errors
View gist:e3edbe8bcdcc51900816
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-shadow-opacity-factor.patch
Created Oct 3, 2014
chjj/compton #232: Add window-type-based shadow opacity
View compton-shadow-opacity-factor.patch
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 / kernel-3.15-pf2-generic.config
Created Jul 20, 2014
Generic kernel-3.15-pf2 configuration
View kernel-3.15-pf2-generic.config
#
# 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-xsync-fence-2.patch
Created Mar 16, 2014
chjj/compton #181: Add X Sync fence support, second revision
View compton-xsync-fence-2.patch
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 / compton-xsync-fence.patch
Created Mar 13, 2014
chjj/compton #181: Add X Sync fence support
View compton-xsync-fence.patch
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-active-dim.patch
Created Feb 1, 2014
chjj/compton #173: Add --active-dim support
View compton-active-dim.patch
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 / gazelle-colorful-votes.patch
Created Oct 14, 2013
gazelle-colorful-votes.patch, for Nex
View gazelle-colorful-votes.patch
diff --git a/classes/class_format.php b/classes/class_format.php
index ab46d71..7b518df 100644
--- a/classes/class_format.php
+++ b/classes/class_format.php
@@ -30,6 +30,33 @@ class Format {
}
}
+ /**
+ * Format a vote count.
@richardgv
richardgv / mpv-0.1.7-sgi-video-sync.patch
Created Sep 24, 2013
chjj/compton #7: Patch to add SGI_video_sync to mpv
View mpv-0.1.7-sgi-video-sync.patch
diff -x '*~' -x '.*.sw?' -ru mpv-0.1.7.orig/video/out/gl_common.c mpv-0.1.7/video/out/gl_common.c
--- mpv-0.1.7.orig/video/out/gl_common.c 2013-09-24 22:58:11.829840182 +0800
+++ mpv-0.1.7/video/out/gl_common.c 2013-09-24 23:05:09.749834728 +0800
@@ -362,6 +362,15 @@
{0}
},
},
+ // SGI_video_sync
+ {
+ .extension = "SGI_video_sync",
You can’t perform that action at this time.