Skip to content

Instantly share code, notes, and snippets.

View hholst80's full-sized avatar
🥱

Henrik Holst hholst80

🥱
View GitHub Profile
@hholst80
hholst80 / messias-is-coming.md
Last active May 9, 2026 09:48
Once again I have to save the world

SAVE US FROM BAD SOFTWARE.

Note that ALL of these problems are due to human engineering. We went out and made something worse.

  1. OpenAI is deliberetly destroying the UX of their models. It is no longer useful for power users like myself.
  2. Anthropic is growing so fast it lost connection with reality (and its customers and users)
  3. Opencode is a shitstorm of buggy code (just like all agentic frontends) that is severely understaffed!
  4. I have for a long time been in a low-intensive fight with 'claude'. Tools should not fight me, they should help me.

So what to do? Well, I can just accept that the situation is getting worse, not better.

Proposal: Add activation_requested event to river_window_v1

Problem

When a client requests activation via xdg-activation-v1 (e.g., Firefox receiving a URL from another app), River's handleRequestActivate in Server.zig currently discards the event for windows:

.window => |_| {}, // TODO support xdg-activation with a rwm extension protocol
@hholst80
hholst80 / build-river.log
Created February 11, 2026 11:34
River 0.4.0-dev build log - updating from 0.3.13 with dependency chain rebuild
# River 0.4.0-dev Build Log
# Date: 2026-02-11
# Updating river from 0.3.13 (river-classic) to 0.4.0-dev (main branch)
## Initial State
Current forge.yaml source: river-classic v0.3.13
Installed binary version: 0.4.0-dev.335+a5a9dce (old dev build)
Target: latest main branch commit
diff --git a/color.c b/color.c
index 42c684c..a88b829 100644
--- a/color.c
+++ b/color.c
@@ -12,31 +12,140 @@
static BOOL color_enabled = FALSE;
+#define NORD_COLOR_COUNT 16
+
@hholst80
hholst80 / config.json
Created October 12, 2024 19:25
waybar/config
{
"layer": "top",
"position": "top",
"spacing": 0,
"height": 42,
// "hyprland/workspaces"
"modules-left": [
"custom/logo",
"river/tags",
],
@hholst80
hholst80 / test.py
Last active October 5, 2024 17:44
async generator playground
import asyncio
from asyncio.exceptions import CancelledError
async def gen(nam="gen"):
for x in range(10):
r = range(10*x, 10*(x+1))
print(f"{nam} produced range: [{10*x},{10*(x+1)})")
yield r
await asyncio.sleep(1)
@hholst80
hholst80 / ulockmgr_server.patch
Last active September 28, 2024 16:04
fuse-2.9.9 glibc patch
--- a/util/ulockmgr_server.c 2024-09-28 17:50:36.929276265 +0200
+++ b/util/ulockmgr_server.c 2024-09-28 17:51:12.812268734 +0200
@@ -124,24 +124,6 @@
return res;
}
-static int closefrom(int minfd)
-{
- DIR *dir = opendir("/proc/self/fd");
- if (dir) {
module main
/*
In-memory blob service.
PUT /path/to/file save a blob under the given path
will overwrite any previously stored blob
GET /path/to/file load a blob from the given path
import os
#include <unistd.h> // Necessary for the C.isatty function
fn main() {
// Define ANSI color codes
// mut ansi_codes := map[string]string
mut ansi_codes := {
'reset': '\x1b[0m'
'red': '\x1b[31m'
const std = @import("std");
pub fn main() !void {
// const allocator = std.heap.page_allocator;
const listen_address = try std.net.Address.parseIp4("127.0.0.1", 1337);
var socket = std.net.StreamServer.init(.{});
defer socket.deinit();
// Start listening for connections