Skip to content

Instantly share code, notes, and snippets.

View tadeokondrak's full-sized avatar

Tadeo Kondrak tadeokondrak

View GitHub Profile
#!/usr/bin/env python3
# pc
#
# Copyright (c) 2022 Tadeo Kondrak
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
#!/usr/bin/env python3
import json
import sys
import re
INITIALS = [
{
"s": "S-",
"ʃ": "SH-",
@tadeokondrak
tadeokondrak / usbdm.nix
Created January 16, 2022 02:27
USBDM package for Nix
{ stdenv
, fetchFromGitHub
, wxGTK30
, jdk
, libusb
, xercesc
, tcl
}:
stdenv.mkDerivation {
@tadeokondrak
tadeokondrak / kakoune_mujs.patch
Last active February 26, 2020 05:35
kakoune_mujs.patch, applies on 93a889bd44ceb5d3d4656d251ddbbd4a88b3fe1b. allows returning one value converted to string, kak.command('args'...) works, and a few other builtin accessors
diff --git a/src/Makefile b/src/Makefile
index 123ef1d8..5550e732 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -85,8 +85,8 @@ else
$(error "pkg-config not found in PATH")
endif
- LIBS += $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --libs ncursesw)
- NCURSES_CFLAGS += $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --cflags ncursesw)
--- a/src/evdev-tablet.c
+++ b/src/evdev-tablet.c
@@ -741,7 +741,6 @@ out:
}
tablet_history_push(tablet, &tablet->axes);
- tablet_smoothen_axes(tablet, &axes);
/* The delta relies on the last *smooth* point, so we do it last */
axes.delta = tablet_tool_process_delta(tablet, tool, device, &axes, time);