From 27b778896d08bb38c0568041ec69dc7a3586a900 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Fri, 28 Nov 2025 23:56:01 -0500 Subject: [PATCH] styling and post updates --- public/styles/posts.css | 4 ++-- src/content/git/auto-theme.nvim.mdx | 18 +++++++----------- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/public/styles/posts.css b/public/styles/posts.css index b9b7892..7601c46 100644 --- a/public/styles/posts.css +++ b/public/styles/posts.css @@ -5,7 +5,7 @@ body:has(.post-container) { overflow: hidden; } -body:has(.post-container) header { +body:has(.post-container) > header { flex-shrink: 0; position: sticky; top: 0; @@ -19,7 +19,7 @@ body:has(.post-container) .main { overflow-x: hidden; } -body:has(.post-container) footer { +body:has(.post-container) > footer { flex-shrink: 0; } diff --git a/src/content/git/auto-theme.nvim.mdx b/src/content/git/auto-theme.nvim.mdx index 6e2aeee..adcde49 100644 --- a/src/content/git/auto-theme.nvim.mdx +++ b/src/content/git/auto-theme.nvim.mdx @@ -34,25 +34,21 @@ As of November 28, 2025, I've created [this script](https://github.com/barrett-r ## successes 1. neovim: I use my non-polling, macOS/linux-supporting automatic theme switcher [auto-theme.nvim](https://github.com/barrett-ruth/auto-theme.nvim) -2. ghostty (macOS): `osascript` clicks the "Reload Configuration" button in the Ghostty menu bar configuration. -3. sioyek: Any changes to user configuration are automatically picked up and reloaded--easy. +2. ghostty: Ghostty supports [light and dark themes based on the system appearance](https://github.com/tmux/tmux/wiki)--easy. +3. sioyek: Any changes to user configuration are automatically reloaded--a script updates user preferences in-place 4. ungoogled-chromium: I folded and used the default system theme which automatically reads and updates according to the system environment -5. swaywm (linux): sioyek reads from a symlink'ed theme file updated and reloaded by the script -6. rofi insert here -7. fzf insert here -8. tmux: I re-export `$THEME` with `set-environment` and force-redraw the bar with `refresh-client -S` to update any relevant ui. +5. swaywm (linux): sway reads from a symlink'ed theme file `sed`ed, updated and reloaded by the script +6. rofi: `config.rasi` also reads from a symlink'ed theme files that is updated and reloaded by the script +7. fzf insert here - read from symlinked file?/cat? +8. tmux: `tmux.conf` reads from symlink'ed theme files that are automatically reloaded with `source-file` ## failures Unfortunately, the following programs I've found nearly impossible to dynamically reload: -2. ghostty (linux): I've bound `alt+r` to the `reload_config` command and press it manually. - -- I could not find an `osacript`-equivalent way to reload the config in linux. - 9. ripgrep: I use the default theme. - The ripgrep global configuration file does not support environment variables, exterminating the option to provide a `${THEME}`-based path in the global configuration file. - I'm also not willing to write an alias wrapper. I don't like to stray too far from the defaults. -10. cabn't force export in all shells - doesn't matter because all sub-programs use it +10. zsh: it's impossible to update `$THEME` across all existing shells (simply a limit of posix). However, all affected _programs_ will read the proper `$THEME`--I'm fine compromising here.