Skip to content

Instantly share code, notes, and snippets.

View Ckath's full-sized avatar
🈚
why does github need a status

Ckat Ckath

🈚
why does github need a status
View GitHub Profile
@Ckath
Ckath / x.c
Last active September 30, 2025 15:07
x output loopenings, expected to error at end, not before
/* compile: gcc -o x x.c -lXrandr -lX11 */
#include <stdio.h>
#include <X11/Xlib.h>
#include <X11/extensions/Xrandr.h>
int main(void) {
Display *dpy = XOpenDisplay(NULL);
if (!dpy) {
fprintf(stderr,"failed to open display\n");
@Ckath
Ckath / 0001-fix-bug-where-unicode-doesnt-get-parsed-in-matcher.patch
Last active January 25, 2021 13:39
hopefully this is merged in urxvt within the current decade
From c5c4bf378e9dbf546f5615582fb020854bb7bbc2 Mon Sep 17 00:00:00 2001
From: ckath <ckat@teknik.io>
Date: Fri, 8 Jan 2021 14:49:56 +0100
Subject: [PATCH] fix bug where unicode doesnt get parsed in matcher
this was caused by text not being (correctly) decoded, special_decoding
it before matching fixes this
---
src/perl/matcher | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@Ckath
Ckath / kotworld.gif
Last active April 18, 2022 18:48
why do gists embed
kotworld.gif