commit 7e113bd2494c466c3633161798dfe769fb164173
parent f87511f0c17dce7d4cac8a6154e2cd10077b15a0
Author: Andrew Laack <andrew@laack.co>
Date: Fri, 18 Sep 2026 16:29:06 -0500
Updated conversion tool, changed theme
Diffstat:
3 files changed, 228 insertions(+), 4 deletions(-)
diff --git a/posts/wip/to-make-a-cool-background.md b/posts/wip/to-make-a-cool-background.md
@@ -8,9 +8,7 @@ IMPLEMENTATION DETAILS
## Background making
-https://github.com/python-xlib/python-xlib
-
-rather shit; also, this isn't faster than using feh from a screenshot of the pygame stuff
+[https://github.com/python-xlib/python-xlib](https://github.com/python-xlib/python-xlib.md)
```python3
os.environ["SDL_VIDEODRIVER"] = "dummy"
diff --git a/scripts/convert.sh b/scripts/convert.sh
@@ -67,7 +67,7 @@ for FILE in posts/entries/*.md; do
sed -i 's/\r$//' "$FILE" || true
- pandoc "$FILE" -o "posts/site/$BASENAME.html" -s --css=style.css --wrap=none
+ pandoc "$FILE" -o "posts/site/$BASENAME.html" -s --css=style.css --wrap=none --syntax-highlighting=scripts/my_style.theme
DATE_LINE=$(grep -m1 '^## Date:' "$FILE" || true)
DATE=${DATE_LINE#'## Date: '}
diff --git a/scripts/my_style.theme b/scripts/my_style.theme
@@ -0,0 +1,226 @@
+{
+ "text-color": "#1f1c1b",
+ "background-color": "#f5f5f5",
+ "line-number-color": "#a0a0a0",
+ "line-number-background-color": "#ffffff",
+ "text-styles": {
+ "Alert": {
+ "text-color": "#bf0303",
+ "background-color": "#f7e6e6",
+ "bold": true,
+ "italic": false,
+ "underline": false
+ },
+ "Annotation": {
+ "text-color": "#ca60ca",
+ "background-color": null,
+ "bold": false,
+ "italic": false,
+ "underline": false
+ },
+ "Attribute": {
+ "text-color": "#0057ae",
+ "background-color": null,
+ "bold": false,
+ "italic": false,
+ "underline": false
+ },
+ "BaseN": {
+ "text-color": "#b08000",
+ "background-color": null,
+ "bold": false,
+ "italic": false,
+ "underline": false
+ },
+ "BuiltIn": {
+ "text-color": "#644a9b",
+ "background-color": null,
+ "bold": true,
+ "italic": false,
+ "underline": false
+ },
+ "Char": {
+ "text-color": "#924c9d",
+ "background-color": null,
+ "bold": false,
+ "italic": false,
+ "underline": false
+ },
+ "Comment": {
+ "text-color": "#898887",
+ "background-color": null,
+ "bold": false,
+ "italic": false,
+ "underline": false
+ },
+ "CommentVar": {
+ "text-color": "#0095ff",
+ "background-color": null,
+ "bold": false,
+ "italic": false,
+ "underline": false
+ },
+ "Constant": {
+ "text-color": "#aa5500",
+ "background-color": null,
+ "bold": false,
+ "italic": false,
+ "underline": false
+ },
+ "ControlFlow": {
+ "text-color": "#1f1c1b",
+ "background-color": null,
+ "bold": true,
+ "italic": false,
+ "underline": false
+ },
+ "DataType": {
+ "text-color": "#0057ae",
+ "background-color": null,
+ "bold": false,
+ "italic": false,
+ "underline": false
+ },
+ "DecVal": {
+ "text-color": "#b08000",
+ "background-color": null,
+ "bold": false,
+ "italic": false,
+ "underline": false
+ },
+ "Documentation": {
+ "text-color": "#607880",
+ "background-color": null,
+ "bold": false,
+ "italic": false,
+ "underline": false
+ },
+ "Error": {
+ "text-color": "#bf0303",
+ "background-color": null,
+ "bold": false,
+ "italic": false,
+ "underline": true
+ },
+ "Extension": {
+ "text-color": "#0095ff",
+ "background-color": null,
+ "bold": true,
+ "italic": false,
+ "underline": false
+ },
+ "Float": {
+ "text-color": "#b08000",
+ "background-color": null,
+ "bold": false,
+ "italic": false,
+ "underline": false
+ },
+ "Function": {
+ "text-color": "#644a9b",
+ "background-color": null,
+ "bold": false,
+ "italic": false,
+ "underline": false
+ },
+ "Import": {
+ "text-color": "#ff5500",
+ "background-color": null,
+ "bold": false,
+ "italic": false,
+ "underline": false
+ },
+ "Information": {
+ "text-color": "#b08000",
+ "background-color": null,
+ "bold": false,
+ "italic": false,
+ "underline": false
+ },
+ "Keyword": {
+ "text-color": "#1f1c1b",
+ "background-color": null,
+ "bold": true,
+ "italic": false,
+ "underline": false
+ },
+ "Normal": {
+ "text-color": "#1f1c1b",
+ "background-color": null,
+ "bold": false,
+ "italic": false,
+ "underline": false
+ },
+ "Operator": {
+ "text-color": "#1f1c1b",
+ "background-color": null,
+ "bold": false,
+ "italic": false,
+ "underline": false
+ },
+ "Other": {
+ "text-color": "#006e28",
+ "background-color": null,
+ "bold": false,
+ "italic": false,
+ "underline": false
+ },
+ "Preprocessor": {
+ "text-color": "#006e28",
+ "background-color": null,
+ "bold": false,
+ "italic": false,
+ "underline": false
+ },
+ "RegionMarker": {
+ "text-color": "#0057ae",
+ "background-color": "#e0e9f8",
+ "bold": false,
+ "italic": false,
+ "underline": false
+ },
+ "SpecialChar": {
+ "text-color": "#3daee9",
+ "background-color": null,
+ "bold": false,
+ "italic": false,
+ "underline": false
+ },
+ "SpecialString": {
+ "text-color": "#ff5500",
+ "background-color": null,
+ "bold": false,
+ "italic": false,
+ "underline": false
+ },
+ "String": {
+ "text-color": "#bf0303",
+ "background-color": null,
+ "bold": false,
+ "italic": false,
+ "underline": false
+ },
+ "Variable": {
+ "text-color": "#0057ae",
+ "background-color": null,
+ "bold": false,
+ "italic": false,
+ "underline": false
+ },
+ "VerbatimString": {
+ "text-color": "#bf0303",
+ "background-color": null,
+ "bold": false,
+ "italic": false,
+ "underline": false
+ },
+ "Warning": {
+ "text-color": "#bf0303",
+ "background-color": null,
+ "bold": false,
+ "italic": false,
+ "underline": false
+ }
+ }
+}
+