feat: Implement comprehensive theme management and fix Alacritty opacity

This commit is contained in:
2025-11-14 19:17:06 +01:00
parent 0349e3bbd6
commit 116642189e
7 changed files with 108 additions and 27 deletions

View File

@@ -25,6 +25,7 @@ for pid in waybar rofi swaync ags swaybg; do
killall -SIGUSR1 "$pid"
done
sleep 0.5 # Added sleep to ensure applications fully terminate
# Initialize swww if needed
swww query || swww-daemon --format xrgb
@@ -51,7 +52,7 @@ update_theme_mode() {
# Function to notify user
notify_user() {
notify-send -u low -i "$notif" " Switching to" " $1 mode"
notify-send -u low -t 5000 -i "$notif" " Switching to" " $1 mode"
}
# Use sed to replace the palette setting in the wallust config file
@@ -143,7 +144,7 @@ fi
sed -i "s|^color_scheme_path=.*$|color_scheme_path=$qt5ct_color_scheme|" "$HOME/.config/qt5ct/qt5ct.conf"
sed -i "s|^color_scheme_path=.*$|color_scheme_path=$qt6ct_color_scheme|" "$HOME/.config/qt6ct/qt6ct.conf"
kvantummanager --set "$kvantum_theme"
#kvantummanager --set "$kvantum_theme" > /dev/null 2>&1 & # Redirect output and run in background
# set the rofi color for background
@@ -248,7 +249,9 @@ ${SCRIPTSDIR}/Refresh.sh
sleep 0.5
# Display notifications for theme and icon changes
notify-send -u low -i "$notif" " Themes switched to:" " $next_mode Mode"
notify-send -u low -t 5000 -i "$notif" " Themes switched to:" " $next_mode Mode"
exit 0