Compare commits
No commits in common. "cea6814e2635683184d21c826a6e5043d40c4ea9" and "2e44c5760ff860bcfe78eda36a9f0761752d8e42" have entirely different histories.
cea6814e26
...
2e44c5760f
|
@ -1,16 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
shared_themes_dir=/usr/share/themes/
|
while inotifywait -r /usr/share/themes/ "$HOME/.local/share/themes/"; do
|
||||||
home_local_themes_dir="$HOME/.local/share/themes/"
|
rsync -av --progress /usr/share/themes/* ~/.themes/ --exclude Windowck
|
||||||
source_theme_dirs="$shared_themes_dir $home_local_themes_dir"
|
rsync -av --progress "$HOME/.local/share/themes/*" ~/.themes/ --exclude Windowck-dark
|
||||||
target_themes_dir="$HOME/.themes"
|
|
||||||
|
|
||||||
if [ ! -e $home_local_themes_dir ]; then
|
|
||||||
mkdir -p $home_local_themes_dir
|
|
||||||
echo "Directory $home_local_themes_dir is created."
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Set watch for $source_theme_dirs directories ..."
|
|
||||||
while inotifywait -r $source_theme_dirs; do
|
|
||||||
rsync -av --delete --progress $source_theme_dirs $target_themes_dir
|
|
||||||
echo "Directory $target_themes_dir is synchronized with $source_theme_dirs."
|
|
||||||
done
|
done
|
Loading…
Reference in New Issue
Block a user