Skip to content

Instantly share code, notes, and snippets.

@gryf
gryf / libxft-bgra.patch
Created June 11, 2021 14:39
bgra patch for gentoo x11-libs/libXft
diff -ur libXft-2.3.3/src/xftcolor.c libXft-2.3.3-patched/src/xftcolor.c
--- libXft-2.3.3/src/xftcolor.c 2019-03-16 19:12:27.000000000 +0100
+++ libXft-2.3.3-patched/src/xftcolor.c 2021-04-23 16:53:14.825232294 +0200
@@ -90,9 +90,9 @@
green_len = masklen (visual->green_mask);
blue_shift = maskbase (visual->blue_mask);
blue_len = masklen (visual->blue_mask);
- result->pixel = (((color->red >> (16 - red_len)) << red_shift) |
- ((color->green >> (16 - green_len)) << green_shift) |
- ((color->blue >> (16 - blue_len)) << blue_shift));
@gryf
gryf / readme
Created November 21, 2025 13:31
Generate menu under Window Maker for installed flatpaks
When wmaker_flatpak_apps.py is in PATH, create menu by adding "Generated Submenu" to the main menu, and as a command put:
wmaker_flatpak_apps.py
it should appear as:
(Flatpaks, OPEN_MENU, "|| wmaker_flatpak_apps.py"),