final theming scripts and modification

This commit is contained in:
2023-09-21 22:26:22 +02:00
parent 17145cd0dd
commit 775de83e85
74 changed files with 218 additions and 527 deletions

View File

@@ -0,0 +1,22 @@
#!/bin/bash
. "${HOME}/.cache/wal/colors.sh"
conffile="${HOME}/.config/mako/config"
# Associative array, color name -> color code.
declare -A colors
colors=(
["background-color"]="$background"
["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
notify-send "Wallpaper and colors updated"