diff --git a/.github/workflows/update-readme.yml b/.github/workflows/update-readme.yml index 9385905..6042e98 100644 --- a/.github/workflows/update-readme.yml +++ b/.github/workflows/update-readme.yml @@ -13,6 +13,11 @@ jobs: steps: - name: Check out the repository to the runner uses: actions/checkout@v4 + - name: Install required dependencies + run: | + sudo apt-get update + sudo apt-get install -y go + go install github.com/anotherhadi/markdown-table-of-contents@latest - name: Run a script run: | chmod +x ./docs/scripts/create_readme.sh diff --git a/docs/scripts/create_readme.sh b/docs/scripts/create_readme.sh index 0997c83..b6195c2 100755 --- a/docs/scripts/create_readme.sh +++ b/docs/scripts/create_readme.sh @@ -6,7 +6,7 @@ README_FILE="./README.md" -table_of_content=$(md-table-of-contents ./docs/src/README_template.md) # https://github.com/anotherhadi/md-table-of-contents +table_of_content=$(markdown-table-of-contents --start-by 2 ./docs/src/README_template.md) # https://github.com/anotherhadi/markdown-table-of-contents readme_content=$(cat "./docs/src/README_template.md") # Replace variables diff --git a/home/system/tofi/default.nix b/home/system/tofi/default.nix new file mode 100644 index 0000000..b55a160 --- /dev/null +++ b/home/system/tofi/default.nix @@ -0,0 +1,21 @@ +{ config, ... }: +let + background = "#${config.lib.stylix.colors.base00}"; + font = "${config.stylix.fonts.serif.name}"; +in { + programs.tofi = { + enable = true; + settings = { + background-color = background; + border-width = 0; + font = font; + height = "100%"; + num-results = 5; + outline-width = 0; + padding-left = "35%"; + padding-top = "35%"; + result-spacing = 25; + width = "100%"; + }; + }; +}