Most applications provide you configuration files that are data / text based. Whether it is toml, JSON, yaml or some other format, you are usually defining values for pre-determined keys and that’s all.

This makes sense for many applications, but involved applications have explored configurations that make use of scripting. For example, vim uses VimScript, neovim uses Lua, but vscode uses json (as far as I remember), and Helix (vim inspired editor) argues editor configurations must be data, not scripting, and uses toml.

many tiling window managers use various programming languages (Qtile uses python, xmonad uses Haskell, Awesome uses Lua) while others stick to data configuration (i3).

Do you think that scriptable configuration is over-engineered and brings weaknesses, or is it warranted and grants the user power in these big applications? What are the benefits of scriptable configurations?

  • I’ve become addicted to script-configured window managers. I won’t even try ones that aren’t, anymore.

    Bash is a scripting language, so it qualifies per your description, but the main advantage is that anything you can do in the config, you can do on the CLI: these WMs also have first-class CLI tooling, a consequence of CLI-first design. All configuration is runtime adaptable, and although auto config reloading can get you there, it’s fantastic to be able to change a configuration without it having to be persisted in a file.

    Seriously, next to tiling, scripted configuration is the most important feature of a WM. I haven’t encountered it outside of WMs very often, but for long running processes, it’s a great design.

    • Cwilliams@beehaw.org
      link
      fedilink
      arrow-up
      2
      ·
      9 months ago

      Same here! I used to use BSPWM, but I since switched to RiverWM. It’s a lot like BSPWM, but for Wayland. Highly recommend