Compare commits
No commits in common. "de69301c8240ed6e679c5aef57f88305f4595a7c" and "dd6743836ee8810abbefcd30ad752e777a136a32" have entirely different histories.
de69301c82
...
dd6743836e
|
@ -162,8 +162,8 @@ sync_theme() {
|
|||
[ "$current_window_scaling" -eq '2' ] && use_hdpi_theme_variant 'disable_notification'
|
||||
fi
|
||||
|
||||
# Cleanup flatpak_themes_dir and remove ~/.config/gtk-4.0
|
||||
rm -rf "${flatpak_themes_dir:?}"/{*,.*} "$config_dir/gtk-4.0"
|
||||
# Cleanup flatpak_themes_dir and ~/.config/gtk-4.0
|
||||
rm -rf "${flatpak_themes_dir:?}"/{*,.*} "$config_dir/gtk-4.0"/{*,.*}
|
||||
|
||||
# Find the directory where the current theme is stored
|
||||
local -r current_theme_dir=$(xdg_directory_lookup "themes/$current_theme")
|
||||
|
@ -171,8 +171,10 @@ sync_theme() {
|
|||
if [ -d "$current_theme_dir" ]; then
|
||||
# Copy/sync current_theme_dir to flatpak_themes_dir
|
||||
rsync -av --delete --progress "$current_theme_dir" "$flatpak_themes_dir"
|
||||
# Create symlink for gtk-4.0 directory
|
||||
ln -s "$current_theme_dir/gtk-4.0" "$config_dir"
|
||||
local -r current_theme_gtk4_dir="$current_theme_dir/gtk-4.0"
|
||||
[ -d "$current_theme_gtk4_dir" ] &&
|
||||
# Copy/sync current_theme_gtk4_dir to config_dir
|
||||
rsync -av --delete --progress "$current_theme_gtk4_dir" "$config_dir"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user