Skip to content

Instantly share code, notes, and snippets.

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
@hholst80
hholst80 / diag.v
Last active December 24, 2023 00:59
import strconv
import math { max, min }
// m-by-n matrix of float 64
// assume C storage (row-major)
pub fn diag(m i64, n i64, lda i64, mut arr []f64, k i64) {
// zero the matrix; potentially faster with vmemset if lda=n
assert lda >= n
zero := i64(0)
for i := zero; i < m; i++ {