add mako wal styling

This commit is contained in:
2025-10-05 18:13:42 +02:00
parent e2dad293c7
commit 86e20c06bc
4 changed files with 51 additions and 1 deletions

20
config/mako/update_theme.sh Executable file
View File

@@ -0,0 +1,20 @@
#!/bin/sh
. "${HOME}/.cache/wal/colors.sh"
conffile="${HOME}/.config/mako/config"
# Associative array, color name -> color code.
declare -A colors
colors=(
["background-color"]="${background}89"
["text-color"]="$foreground"
["border-color"]="$color13"
)
for color_name in "${!colors[@]}"; do
# replace first occurance of each color in config file
sed -i "0,/^$color_name.*/{s//$color_name=${colors[$color_name]}/}" $conffile
done
makoctl reload