From 0df5a287bfcb697d58c32ad01a4aa1b34ff55198 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Fri, 22 Dec 2023 01:53:40 +0900 Subject: Added Tokyo-Day kvantum theme app updated DarkLight.sh script to include QT apps in Dark/Light switching --- config/hypr/scripts/DarkLight.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'config/hypr/scripts') diff --git a/config/hypr/scripts/DarkLight.sh b/config/hypr/scripts/DarkLight.sh index 628baa41..bc2e3bc0 100755 --- a/config/hypr/scripts/DarkLight.sh +++ b/config/hypr/scripts/DarkLight.sh @@ -45,9 +45,13 @@ set_waybar_style() { if [ "$(cat ~/.cache/.wallpaper_mode)" = "Light" ]; then next_mode="Dark" wallpaper_path="$dark_wallpapers" + kvantum_mode="Tokyo-Night" + qt5ct_color_scheme="$HOME/.config/qt5ct/colors/Tokyo-Night.conf" else next_mode="Light" wallpaper_path="$light_wallpapers" + kvantum_mode="Tokyo-Day" + qt5ct_color_scheme="$HOME/.config/qt5ct/colors/Tokyo-Day.conf" fi # Call the function after determining the mode @@ -64,6 +68,12 @@ else sed -i '/foreground = /s/.*/ foreground = "#00000095"/' "${dunst_config}/dunstrc" fi +# QT APPS Change Kvantum Manager theme & QT5CT Settings +# QT Icons at below with GTK Icons +kvantummanager --set "$kvantum_mode" +sed -i "s|^color_scheme_path=.*$|color_scheme_path=$qt5ct_color_scheme|" "$HOME/.config/qt5ct/qt5ct.conf" + + # Set Rofi Themes if [ "$next_mode" = "Dark" ]; then ln -sf $dark_rofi_pywal "$HOME/.config/rofi/pywal-color/pywal-theme.rasi" @@ -136,11 +146,15 @@ set_custom_gtk_theme() { fi echo "Selected icon theme for $mode mode: $selected_icon" gsettings set $icon_setting "$selected_icon" + + ## QT5ct icon_theme + sed -i "s|^icon_theme=.*$|icon_theme=$selected_icon|" "$HOME/.config/qt5ct/qt5ct.conf" else echo "No $mode icon theme found" fi } + # Call the function to set GTK theme and icon theme based on mode set_custom_gtk_theme "$next_mode" -- cgit v1.2.3