Collecting my attempts to improve at tech, art, and life

My Config-Generating Justfile

Using Yarner to tangle the file that drives the whole process? I should be ashamed of myself. I’m not, but I feel like I should be.

Building everything with Yarner

I let Yarner do its thing. Then I copy my newly generated justfile and dotbot configs to the project root, making sure to back up the current copies. If I screw up, I can always go to the backup. If I screw up bad, I can always go back to Git history. If I screw up real bad, I have another computer.

  cp -b code/justfile ./
  cp -b code/install.conf.yaml ./

Installing my configs with dotbot

Invoke dotbot to link with files and directories.

  ./install -v


Remove the build artifacts if they exist. Better be careful about running this, as it will confuse Dotbot.

  [ -d code ] && rm -r code
  [ -d docs ] && rm -r docs

Checking window managers

It’s a manual process: run a nested X server with awesome or qtile. If anything is off, fix it and reload from inside the nested server.

  Xephyr :5 & sleep 1 ; DISPLAY=:5 awesome

  Xephyr :5 & sleep 1 ; DISPLAY=:5 qtile start

Anything else?

I need some kind of test process, but better think about what that would look like before I try.

Added to vault 2024-01-15. Updated on 2024-02-01