Use .default files

This commit is contained in:
Viyurz 2024-10-21 14:12:25 +02:00
parent f9166152eb
commit ffaa4a9e5b
Signed by: Viyurz
SSH key fingerprint: SHA256:IskOHTmhHSJIvAt04N6aaxd5SZCVWW1Guf9tEcxIMj8
12 changed files with 9 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

3
.gitignore vendored
View file

@ -1 +1,4 @@
colors.* colors.*
kitty/kitty.conf
mako/config
wlogout/*.png

View file

@ -248,6 +248,8 @@ function set_kitty_theme {
[inactive_tab_foreground]="${colors[foreground]}" [inactive_tab_foreground]="${colors[foreground]}"
) )
cp "$HOME/.config/kitty/kitty.conf.default" "$HOME/.config/kitty/kitty.conf"
for key in "${!kitty_variables[@]}"; do for key in "${!kitty_variables[@]}"; do
value="${kitty_variables[$key]}" value="${kitty_variables[$key]}"
sed -i "s/^$key.*/$key $value/" "$HOME/.config/kitty/kitty.conf" sed -i "s/^$key.*/$key $value/" "$HOME/.config/kitty/kitty.conf"
@ -268,6 +270,8 @@ function set_mako_theme {
[border-color]="${colors[accent1]}" [border-color]="${colors[accent1]}"
) )
cp "$HOME/.config/mako/config.default" "$HOME/.config/mako/config"
for key in "${!mako_variables[@]}"; do for key in "${!mako_variables[@]}"; do
value="${mako_variables[$key]}" value="${mako_variables[$key]}"
sed -i "s/$key=.*/$key=$value/" "$HOME/.config/mako/config" sed -i "s/$key=.*/$key=$value/" "$HOME/.config/mako/config"
@ -317,8 +321,8 @@ function set_waybar_theme {
function set_wlogout_theme { function set_wlogout_theme {
for img in lock reboot shutdown logout; do for img in lock reboot shutdown logout; do
magick "$HOME/.config/wlogout/$img.png" -fill "${colors[accent1]}" -colorize 100 "$HOME/.config/wlogout/$img.png" magick "$HOME/.config/wlogout/$img.png.default" -fill "${colors[accent1]}" -colorize 100 "$HOME/.config/wlogout/$img.png"
magick "$HOME/.config/wlogout/$img-focus.png" -fill "${colors[accent2]}" -colorize 100 "$HOME/.config/wlogout/$img-focus.png" magick "$HOME/.config/wlogout/$img-focus.png.default" -fill "${colors[accent2]}" -colorize 100 "$HOME/.config/wlogout/$img-focus.png"
done done
} }