diff --git a/.config/kitty/kitty.conf b/.config/kitty/kitty.conf.default similarity index 100% rename from .config/kitty/kitty.conf rename to .config/kitty/kitty.conf.default diff --git a/.config/mako/config b/.config/mako/config.default similarity index 100% rename from .config/mako/config rename to .config/mako/config.default diff --git a/.config/wlogout/lock-focus.png b/.config/wlogout/lock-focus.png.default similarity index 82% rename from .config/wlogout/lock-focus.png rename to .config/wlogout/lock-focus.png.default index 4e90ba1..1315210 100644 Binary files a/.config/wlogout/lock-focus.png and b/.config/wlogout/lock-focus.png.default differ diff --git a/.config/wlogout/lock.png b/.config/wlogout/lock.png.default similarity index 82% rename from .config/wlogout/lock.png rename to .config/wlogout/lock.png.default index 9ce30d0..300a916 100644 Binary files a/.config/wlogout/lock.png and b/.config/wlogout/lock.png.default differ diff --git a/.config/wlogout/logout-focus.png b/.config/wlogout/logout-focus.png.default similarity index 79% rename from .config/wlogout/logout-focus.png rename to .config/wlogout/logout-focus.png.default index a761313..3a37830 100644 Binary files a/.config/wlogout/logout-focus.png and b/.config/wlogout/logout-focus.png.default differ diff --git a/.config/wlogout/logout.png b/.config/wlogout/logout.png.default similarity index 79% rename from .config/wlogout/logout.png rename to .config/wlogout/logout.png.default index 029a1f7..9ff10dd 100644 Binary files a/.config/wlogout/logout.png and b/.config/wlogout/logout.png.default differ diff --git a/.config/wlogout/reboot-focus.png b/.config/wlogout/reboot-focus.png.default similarity index 85% rename from .config/wlogout/reboot-focus.png rename to .config/wlogout/reboot-focus.png.default index d049a52..cb74768 100644 Binary files a/.config/wlogout/reboot-focus.png and b/.config/wlogout/reboot-focus.png.default differ diff --git a/.config/wlogout/reboot.png b/.config/wlogout/reboot.png.default similarity index 85% rename from .config/wlogout/reboot.png rename to .config/wlogout/reboot.png.default index 0db612b..e894aab 100644 Binary files a/.config/wlogout/reboot.png and b/.config/wlogout/reboot.png.default differ diff --git a/.config/wlogout/shutdown-focus.png b/.config/wlogout/shutdown-focus.png.default similarity index 85% rename from .config/wlogout/shutdown-focus.png rename to .config/wlogout/shutdown-focus.png.default index 172eb96..5ac3aa9 100644 Binary files a/.config/wlogout/shutdown-focus.png and b/.config/wlogout/shutdown-focus.png.default differ diff --git a/.config/wlogout/shutdown.png b/.config/wlogout/shutdown.png.default similarity index 85% rename from .config/wlogout/shutdown.png rename to .config/wlogout/shutdown.png.default index d624295..52a6212 100644 Binary files a/.config/wlogout/shutdown.png and b/.config/wlogout/shutdown.png.default differ diff --git a/.gitignore b/.gitignore index 07524ac..70c2b06 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ colors.* +kitty/kitty.conf +mako/config +wlogout/*.png diff --git a/.scripts/theme-changer.sh b/.scripts/theme-changer.sh index 3e22942..1533249 100755 --- a/.scripts/theme-changer.sh +++ b/.scripts/theme-changer.sh @@ -248,6 +248,8 @@ function set_kitty_theme { [inactive_tab_foreground]="${colors[foreground]}" ) + cp "$HOME/.config/kitty/kitty.conf.default" "$HOME/.config/kitty/kitty.conf" + for key in "${!kitty_variables[@]}"; do value="${kitty_variables[$key]}" sed -i "s/^$key.*/$key $value/" "$HOME/.config/kitty/kitty.conf" @@ -268,6 +270,8 @@ function set_mako_theme { [border-color]="${colors[accent1]}" ) + cp "$HOME/.config/mako/config.default" "$HOME/.config/mako/config" + for key in "${!mako_variables[@]}"; do value="${mako_variables[$key]}" sed -i "s/$key=.*/$key=$value/" "$HOME/.config/mako/config" @@ -317,8 +321,8 @@ function set_waybar_theme { function set_wlogout_theme { 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-focus.png" -fill "${colors[accent2]}" -colorize 100 "$HOME/.config/wlogout/$img-focus.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.default" -fill "${colors[accent2]}" -colorize 100 "$HOME/.config/wlogout/$img-focus.png" done }