{{ .Title }}
+{{ .Title }}
{{ .Date | time.Format (i18n "post.created") }}
{{ else }} - +{{ .Lastmod | time.Format (i18n "post.updated") }}
{{ end }} {{- end -}}{{ .Title }}
+{{ .Date.Format "Jan 2, 2006" }}
+{{ .Summary }}
+diff --git a/config.toml b/config.toml index fd54b33..6e412f6 100644 --- a/config.toml +++ b/config.toml @@ -1,6 +1,5 @@ baseURL = "https://nonsense.dymc.win" title = "James' Blog" -# theme = "etch" languageCode = "en-GB" enableInlineShortcodes = true pygmentsCodeFences = true @@ -12,17 +11,17 @@ pygmentsUseClasses = true [menu] [[menu.main]] - identifier = "--help" - name = "--help" - title = "--help" + identifier = "👋" + name = "👋" + title = "👋" url = "/info/" weight = 20 - # [[menu.main]] - # identifier = "search" - # name = "search" - # title = "search" - # url = "/search/" - # weight = 20 + [[menu.main]] + identifier = "🔎" + name = "🔎" + title = "🔎" + url = "/search/" + weight = 20 [permalinks] posts = "/:title/" diff --git a/content/info/index.md b/content/info/index.md index f49b687..3b0449b 100644 --- a/content/info/index.md +++ b/content/info/index.md @@ -2,4 +2,4 @@ This is a place to document bits and bobs I've been up to that have interested m Expect linux and self-hosting tinkering, some novice programming, and maybe the occasional recipe. I tend to be a fool so take anything written here with a pinch of salt :) -- [rss HERE!!](../index.xml) +[rss feed here!](../index.xml) diff --git a/content/posts/making-nix-colors-talk-to-neovim.md b/content/posts/making-nix-colors-talk-to-neovim.md index dd43b76..2eb3388 100644 --- a/content/posts/making-nix-colors-talk-to-neovim.md +++ b/content/posts/making-nix-colors-talk-to-neovim.md @@ -11,6 +11,7 @@ draft: false I recently started fiddling around with home-managerifying my neovim config. After moving across most of my stuff I came across the problem of how to hook things up with with [nix-colors](https://github.com/misterio77/nix-colors) so that my neovim theme would follow color changes in home-manager. + Luckily, I came across [this](https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-base16.md) handy little plugin from the lovely [mini.nvim](https://github.com/echasnovski/mini.nvim) suite of plugins which lets you create your own theme with your custom colors. diff --git a/content/posts/multi-user-qtile-fiddling.md b/content/posts/multi-user-qtile-fiddling.md index 9bbd7cf..ed01a8f 100644 --- a/content/posts/multi-user-qtile-fiddling.md +++ b/content/posts/multi-user-qtile-fiddling.md @@ -1,6 +1,6 @@ --- title: Multi user qtile fiddling -date: 2022-12-20 +date: 2022-12-20 tags: - qtile - python diff --git a/content/posts/nixos-remote-auto-static-site-deploy.md b/content/posts/nixos-remote-auto-static-site-deploy.md index 03e6f18..3ac9872 100644 --- a/content/posts/nixos-remote-auto-static-site-deploy.md +++ b/content/posts/nixos-remote-auto-static-site-deploy.md @@ -9,6 +9,7 @@ draft: false As is traditional with people hosting their own blog I'm going to do a post detailing EXACTLY how I'm hosting my blog. Down to the last dirty detail. I have nothing better to talk about. + Here is a diagram I edited to illustrate (credit to xkcd I think?).  diff --git a/content/posts/zen-twitch-viewing-script.md b/content/posts/zen-twitch-viewing-script.md index fd667f7..5b355da 100644 --- a/content/posts/zen-twitch-viewing-script.md +++ b/content/posts/zen-twitch-viewing-script.md @@ -12,6 +12,7 @@ I'm declining cookies. I'm getting spammed with notifications to claim a sick new overwatch skin. There's a little channel point button twerking for me to click it. You get the idea; it's a heavy noisy experience. + As a result I set out to devise a solution which does spark joy. I came up with a script which leans on DIY desktop staples (dunst, tofi, mpv) and the very nice cli utility [streamlink](https://github.com/streamlink/streamlink). @@ -71,7 +72,7 @@ if [[ -n "$choice" ]]; then # get first column from selection aka stream name meat=$(echo "$choice" | awk '{print $1}') "${NOTIFY}" "twitch -- launching twitch.tv/$meat" - streamlink twitch.tv/"$meat" 1080p60 --player $"{PLAYER}" + streamlink twitch.tv/"$meat" 1080p60 --player "${PLAYER}" fi ``` @@ -104,3 +105,5 @@ fi - no chat (you might want to spam LUL) - takes a second to talk to the internet so things don't launch immediately - have to faff with getting api key - [how to get one btw](https://dev.twitch.tv/docs/api/get-started/) + +Hope you enjoyed bye diff --git a/content/search/_index.md b/content/search/_index.md new file mode 100644 index 0000000..c7dd7f6 --- /dev/null +++ b/content/search/_index.md @@ -0,0 +1,3 @@ +--- +layout: "search" +--- diff --git a/layouts/_default/search.html b/layouts/_default/search.html new file mode 100644 index 0000000..a458d63 --- /dev/null +++ b/layouts/_default/search.html @@ -0,0 +1,36 @@ +{{ define "main" }} + +
This is not a very clever search. It simply looks if the content of a post contains your query.
+ + + +Alternatively, this is everything.
+ +{{ $pages := where site.RegularPages "Type" "posts" }} +{{ $years := $pages.GroupByDate "2006" }} + +{{ .Date | time.Format (i18n "post.created") }}
{{ else }} - +{{ .Lastmod | time.Format (i18n "post.updated") }}
{{ end }} {{- end -}}{{ .Date.Format "Jan 2, 2006" }}
+{{ .Summary }}
+Aug 13, 2025
+I like to watch twitch streams.
+Watching them in the browser at twitch.tv is generally not an experience which sparks joy though.
+I’m buffering.
+I’m declining cookies.
+I’m getting spammed with notifications to claim a sick new overwatch skin.
+There’s a little channel point button twerking for me to click it.
+You get the idea; it’s a heavy noisy experience.
Aug 11, 2025
+As is traditional with people hosting their own blog I’m going to do a post detailing EXACTLY how I’m hosting my blog. +Down to the last dirty detail. +I have nothing better to talk about.
+Apr 6, 2024
+I’ve recently been messing around with writing neovim plugins. +When I initially got going I found it a little tricky to know how to get started. +There’s the official neovim docs which are great; but in my beginner experience exhaustive to the point of slight impenetrability. +Beyond that, the thing I found most useful was simply reading the source of some popular plugins to get an idea of how things worked. +I would recommend sticking to plugins with a smaller scope though.
+Aug 18, 2023
+I recently started fiddling around with home-managerifying my neovim config. +After moving across most of my stuff I came across the problem of how to hook things up with with nix-colors so that my neovim theme would follow color changes in home-manager.
+Jun 26, 2023
+Sometimes when I’m trawling the internet and happen upon a particularly nice looking website, I develop css and javascript FOMO. The thing I’ve been lusting after above all else is one of those fancy little dark theme toggle buttons. As you can probably tell from the website you’re looking at my web dev skills are limited. As a result of this I had assumed such niceties were out of reach.
+This is a place to document bits and bobs I’ve been up to that have interested me. Expect linux and self-hosting tinkering, some novice programming, and maybe the occasional recipe. I tend to be a fool so take anything written here with a pinch of salt :)
------------------
+April 3, 2023
I’m a person who has spent an unreasonable amount of time making minute changes to the appearance of my bar in qtile. Despite the very nice selection of widgets availabe by default with qtile, it was only a matter of time before I decided I wanted to experiment with making my own custom widget. Fortunately, if you can do a bit of python this is quite an approachable undertaking.
The dream widget I was lacking was a little live crikcet score ticker type thing; something which would scroll along on my bar showing me the score in live cricket matches. I’m sure this will interest very few people but I learnt some good stuff along the way.
@@ -137,12 +137,9 @@Happy widget writing.
-----------------
+November 18, 2022
About a month ago I was a little bored and thought I’d give emacs a go. There’s something fun about trying out these mythical pieces of software that have been around forever; kind of like watching The Godfather for the first time. Like many extensible, super configurable programs, emacs seems kind of impenetrable at first glance. I tried doing the tutorial but kind of glazed over after a while with the endless stream of C-a C-b C-c. There’s also the quite jarring default theme which wasn’t vibing with the lovely screenshots I had seen on the internet. Anyway, after quite a bit of fiddling I’ve landed on a simple little setup that I’ve been quite enjoying. Here are a few little pointers to hopefully ease you in.

-----------------
+August 18, 2023
I recently started fiddling around with home-managerifying my neovim config. After moving across most of my stuff I came across the problem of how to hook things up with with nix-colors so that my neovim theme would follow color changes in home-manager.
@@ -76,15 +76,11 @@ After moving across most of my stuff I came across the problem of how to hook th ]; }; } -Happy theming!
-Happy theming!
-----------------
+December 20, 2022
This post is going to detail how I solved a very particular problem I had created for myself. First, a quick description of the problem. I use home-manager on nixos to declaratively configure what happens on my computer. In the cases where home-manager does not expose sufficient configuration options for my liking (qtile for example), I instead link a configuration file from my nixos config to where it belongs in my home using xdg.configFile. This is what I do with my qtile config.py. I use qtile on my desktop and laptop but I dont want an identical setup on the two machines. I have jumped through many different slightly silly hoops in my nixos config sort of solving this problem until the other day it occured to me this could all be achieved with my python in my qtile config.
Of course, there are many ways that this could all be achievd but I think it’s quite neat having it all in my one qtile config. That’s about it for today. lots of love x
-----------------
+August 11, 2025
As is traditional with people hosting their own blog I’m going to do a post detailing EXACTLY how I’m hosting my blog. Down to the last dirty detail. -I have nothing better to talk about. -Here is a diagram I edited to illustrate (credit to xkcd I think?).
+I have nothing better to talk about. +Here is a diagram I edited to illustrate (credit to xkcd I think?).

I host my site on a hetzner vps running nixos. I also have a git repo where all the static files for my blog live. @@ -116,15 +116,11 @@ That’s the directory of the git repo that the website source lives.
rev and sha256 to the new commit (this is annoying and I’m trying to work out a good way to automate it)Not necessarily faster than the old rsync method but it’s pretty damn declarative, that’s for sure.
-Not necessarily faster than the old rsync method but it’s pretty damn declarative, that’s for sure.
-----------------
+-----------------
+January 24, 2023
I have an old sad android phone with 2GB of ram which nowadays seems struggles these days. As a result of this I have been ‘podcast-player-hopping’ without success for the last couple of months trying to find something which doesn’t nuke my phone whenever I use it. In a moment of desperation it occured to me that a creative solution might be required. The gameplan was this:
Of course this slightly ramshackle approach is certainly not for everyone lol but as it stands it’s working quite nicely for me. Lots of love and happy listening :)
-----------------
+September 13, 2022
There are lots of music players on linux. I have used lots of them, I quite like some of them. But for some reason I decided I wanted more. With this in mind, over the past few months I have been constructing a sprawling ecosystem of bash scripts all geared towards delivering a customised listening experience tailored perfectly to my every need. In short, the setup uses a simple dmenu file manager to browse my local files and mpv to play them. Today I’ll be talking specifically about my setup for recording the albums I’ve been listening to.
Finally, disclaimer: I am a bash amateur so I hope nothing you’ve seen here was too upsetting. Lots of love x
-----------------
+This is not a very clever search. It simply looks if the content of a post contains your query.
+ + + +Alternatively, this is everything.
+ + + + +This is not a very clever search. It simply looks if the content of a post contains your query.
+ +This is not a very clever search. It simply looks if the content of a post contains your query.
+ +January 29, 2023
Setting up a little static site is something I’ve done a few different times on a few different operating systems. It’s a slightly fiddly task with a few disparate jobs that all need looking after: ssh, let’s encrypt, nginx. In my opinion, it is one of the moments where consolidating all the little bits and bobs you need to setup into one common configuration is very useful.
I’m going to go through a bit of the nixos config I’ve got for my vps.
@@ -85,12 +85,9 @@This means I can just rsync the updated site from my laptop to the server and it’ll be updated within the hour. Good enough for me.
-----------------
+April 6, 2024
I’ve recently been messing around with writing neovim plugins.
When I initially got going I found it a little tricky to know how to get started.
@@ -102,12 +102,9 @@ As a little coda, this is how you can use your fancy new plugin using
- ----------------- -----------------
-----------------
+-----------------
+-----------------
+-----------------
+-----------------
+-----------------
+-----------------
+-----------------
+