|1 week ago|
|.gitignore||3 months ago|
|README.md||1 week ago|
|flake.lock||1 week ago|
|flake.nix||4 months ago|
|wd2||1 week ago|
A wrapper over d2 which allows to use cli/env configuratios as additional specific attributes from d2 file. All these attributes will be passed to the d2 cli and overwrite cli parameters with the same name.
This repo is also packaged via Nix flakes, the package is available through the
default flake output
github:pleshevskiy/wd2 with the path
You can enable flakes support in your nix configuration, and then run nix
github:pleshevskiy/wd2 to get
wd2 installed. You can also
use this repository as a flake input and add its output to your own
flake-managed systemwide or home configuration.
wd2 script to
Create a d2 file with additional configs at the top.
# layout: elk # theme: 101 # pad: 5 x -> y -> z
Then run the
wd2 -w path/to/your/file.d2
You can also use inline style to configure d2
# layout: elk; theme: 101; pad: 5 x -> y -> z
You have to restart the watch server when you change the
pad and other attributes in a specified d2 file