Update ximper-unified-theme-switcher-service

parent a9897544
...@@ -7,6 +7,12 @@ CONFIG_FILE="/etc/ximper-unified-theme-switcher/themes" ...@@ -7,6 +7,12 @@ CONFIG_FILE="/etc/ximper-unified-theme-switcher/themes"
HOME_CONFIG_DIR="$HOME/.config/ximper-unified-theme-switcher" HOME_CONFIG_DIR="$HOME/.config/ximper-unified-theme-switcher"
HOME_CONFIG_FILE="$HOME_CONFIG_DIR/themes" HOME_CONFIG_FILE="$HOME_CONFIG_DIR/themes"
#Значение текущего режима цветовой схемы
{
"current_theme": "light"
}
# Функция для создания конфига в домашнем каталоге (TODO: перенести в GUI) # Функция для создания конфига в домашнем каталоге (TODO: перенести в GUI)
create_home_config() { create_home_config() {
mkdir -p "$HOME_CONFIG_DIR" mkdir -p "$HOME_CONFIG_DIR"
...@@ -134,6 +140,8 @@ main() { ...@@ -134,6 +140,8 @@ main() {
else else
echo "$THEME" echo "$THEME"
check_and_update_themes check_and_update_themes
CURRENT_THEME=$(jq -r '.current_theme' config.json)
check_and_update_themes "$CURRENT_THEME"
fi fi
fi fi
done done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment