make niri config templateable
This commit is contained in:
17
config/niri/generate_kdl.sh
Executable file
17
config/niri/generate_kdl.sh
Executable 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
|
||||
Reference in New Issue
Block a user