aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts
diff options
context:
space:
mode:
authorJaKooLit <jimmielovejay@gmail.com>2023-12-22 01:53:40 +0900
committerJaKooLit <jimmielovejay@gmail.com>2023-12-22 01:53:40 +0900
commit0df5a287bfcb697d58c32ad01a4aa1b34ff55198 (patch)
tree71d12e857490a21d053a4c52d0ac68ea26448499 /config/hypr/scripts
parent75d90acc0862d02561e50a0da76a0a389555eaaa (diff)
Added Tokyo-Day kvantum theme app
updated DarkLight.sh script to include QT apps in Dark/Light switching
Diffstat (limited to 'config/hypr/scripts')
-rwxr-xr-xconfig/hypr/scripts/DarkLight.sh14
1 files changed, 14 insertions, 0 deletions
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"
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage