add multiple fix instances check

This commit is contained in:
Roma 2022-09-17 23:35:02 +02:00
parent 57cd5cf29c
commit 7446f5ce65
2 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,5 @@
#!/bin/sh
pidof -sq -o %PPID -x "$(basename "$0")" && exit
while :; do
rm -r ~/.themes/* 2> /dev/null
rsync -av --progress /usr/share/themes/* ~/.themes/ --exclude Windowck

View File

@ -20,6 +20,7 @@ sync_icon_theme() {
sed -i "s/^icon_theme=.*$/icon_theme=$icon_theme/" "$HOME"/.config/qt6ct/qt6ct.conf
}
pidof -sq -o %PPID -x "$(basename "$0")" && exit
while :; do
# Get the current system theme
theme_new=$(xfconf-query -c xsettings -p /Net/ThemeName)