make niri config templateable

This commit is contained in:
2025-10-05 21:40:47 +02:00
parent 86e20c06bc
commit d3498f1724
3 changed files with 25 additions and 6 deletions

17
config/niri/generate_kdl.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
. "$HOME/.cache/wal/colors.sh"
echo "$color1"
export focus_active="$color2"
#export focus_inactive="$FOCUS_INACTIVE"
#export border_active="$BORDER_ACTIVE"
#export border_inactive="$BORDER_INACTIVE"
#export border_urgent="$BORDER_URGENT"
# for simplicity, using envsubst:
envsubst <$HOME/.config/niri/config.template.kdl >$HOME/.config/niri/config.kdl
# optionally force Niri to reload or redraw (if needed)
#niri msg action redraw