Skip to content

Instantly share code, notes, and snippets.

@richardgv
richardgv / etc__portage__bashrc
Created January 26, 2013 13:51
Configuration to apply epatch_user() on every ebuild.
bashrc_call_epatch_user() {
[ -d ${S} ] && cd "${S}"
if type epatch_user > /dev/null 2>&1 \
&& type epatch > /dev/null 2>&1; then
epatch_user
else
. ${ROOT}etc/portage/env/epatch.sh
epatch_user
# To avoid issues when writing an ebuild
unset epatch
@richardgv
richardgv / backtrace.txt
Created March 29, 2013 00:43
fcitx-sogoupinyin-0.0.0: Segfault backtrace
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff04fb05c in itl::ImmRBTree<wchar_t const*, t_envEntryBase const*, itl::CElementTraits<wcha
r_t const*>, itl::CElementTraits<t_envEntryBase const*>, itl::ImmPlexAllocDefault>::NewNode(wchar_t
const* const&, t_envEntryBase const* const&) () from /usr/lib64/fcitx/fcitx-sogoupinyin.so
#0 0x00007ffff04fb05c in itl::ImmRBTree<wchar_t const*, t_envEntryBase const*, itl::CElementTraits<wchar_t const*>, itl::CElementTraits<t_envEntryBase const*>, itl::ImmPlexAllocDefault>::NewNode(wchar_t const* const&, t_envEntryBase const* const&) () from /usr/lib64/fcitx/fcitx-sogoupinyin.so
No symbol table info available.
#1 0x00007ffff04fb5c6 in itl::ImmRBTree<wchar_t const*, t_envEntryBase const*, itl::CElementTraits<wchar_t const*>, itl::CElementTraits<t_envEntryBase const*>, itl::ImmPlexAllocDefault>::InsertImpl(wchar_t const* const&, t_envEntryBase const* const&) () from /usr/lib64/fcitx/fcitx-sogoupinyin.so
No symbol table info available.
#2 0x00007ffff04fb6
@richardgv
richardgv / fcitx-diagnose-out.txt
Created April 10, 2013 06:32
fcitx-diagnose output
# System Info.
1. `uname -a`:
Linux home 3.8.2-pf #1 SMP PREEMPT Mon Apr 8 08:58:52 CST 2013 x86_64 Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz GenuineIntel GNU/Linux
2. `lsb_release -a`:
LSB Version: n/a
Distributor ID: Gentoo
Description: NAME=Gentoo
@richardgv
richardgv / compton-fix-blur-lines.patch
Last active December 16, 2015 17:40
Attempt to fix the linear artifacts caused by blur under GLX backend.
diff --git a/src/compton.c b/src/compton.c
index cfd773c..9b43880 100644
--- a/src/compton.c
+++ b/src/compton.c
@@ -1597,7 +1597,7 @@ rebuild_screen_reg(session_t *ps) {
}
static void
-paint_all(session_t *ps, XserverRegion region, win *t) {
+paint_all(session_t *ps, XserverRegion region, XserverRegion region_real, win *t) {
@richardgv
richardgv / skippy-xd-custom-win-actions-wip.patch
Created May 9, 2013 14:22
richardgv/skippy-xd #2: Custom window actions and bindings, work in progress
diff --git a/skippy-xd.rc-default b/skippy-xd.rc-default
index ce2fb75..a4a1258 100644
--- a/skippy-xd.rc-default
+++ b/skippy-xd.rc-default
@@ -55,3 +55,8 @@ opacity = 128
text = #ffffff
textShadow = black
font = fixed-11:weight=bold
+
+[bindings]
@richardgv
richardgv / compton-dbusfading-multipassblur-wip.patch
Last active December 17, 2015 10:59
chjj/compton: D-Bus fading control & Multi-pass blur (WIP)
diff --git a/Makefile b/Makefile
index db7a272..d94783d 100644
--- a/Makefile
+++ b/Makefile
@@ -52,6 +52,12 @@ ifeq "$(NO_VSYNC_OPENGL)" ""
ifeq "$(NO_VSYNC_OPENGL_GLSL)" ""
CFG += -DCONFIG_VSYNC_OPENGL_GLSL
endif
+ ifeq "$(NO_VSYNC_OPENGL_FBO)" ""
+ CFG += -DCONFIG_VSYNC_OPENGL_FBO
@richardgv
richardgv / compton-varray.patch
Created May 22, 2013 12:57
chjj/compton #107: Use OpenGL VBO (Broken code, do not use in productive environment.)
diff --git a/src/compton.c b/src/compton.c
index c55d045..a9be15c 100644
--- a/src/compton.c
+++ b/src/compton.c
@@ -5118,6 +5118,7 @@ get_cfg(session_t *ps, int argc, char *const *argv, bool first_pass) {
{ "resize-damage", required_argument, NULL, 302 },
{ "glx-use-gpushader4", no_argument, NULL, 303 },
{ "opacity-rule", required_argument, NULL, 304 },
+ { "glx-use-vbo", no_argument, NULL, 305 },
// Must terminate with a NULL entry
@richardgv
richardgv / skippyxd-customizable-tooltip-pos.patch
Created May 26, 2013 02:05
richardgv/skippy-xd #7: Quick and dirty implementation of customizable tooltip positioning
diff --git a/skippy-xd.rc-default b/skippy-xd.rc-default
index adcba44..3836848 100644
--- a/skippy-xd.rc-default
+++ b/skippy-xd.rc-default
@@ -54,6 +54,10 @@ opacity = 255
[tooltip]
show = true
+followsMouse = true
+offsetX = 20
@richardgv
richardgv / skippy-xd-wip.patch
Last active December 18, 2015 00:19
richardgv/skippy-xd #10: Possible fix & other WIP things
diff --git a/Makefile b/Makefile
index 369ea19..52b72f8 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,7 @@ BINDIR ?= ${PREFIX}/bin
CC ?= gcc
+SRCS_RAW = skippy wm dlist mainwin clientwin layout focus config tooltip img
PACKAGES = x11 xft xrender xcomposite xdamage xfixes
@richardgv
richardgv / compton-xinerama-shadow-crop.patch
Created August 22, 2013 06:50
chjj/compton #137: Untested --xinerama-shadow-crop patch
diff --git a/Makefile b/Makefile
index 9acba9d..655c77d 100644
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,12 @@ OBJS = compton.o
# === Configuration flags ===
CFG = -std=c99
+# ==== Xinerama ====
+ifeq "$(NO_XINERAMA)" ""