Prevent duplicate X11 session loops from killing Conky and daemonize Conky cleanly

This commit is contained in:
Luxferre
2026-10-25 16:18:43 +02:00
parent 651720b56b
commit 0aff8a3379
5 changed files with 24 additions and 10 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ setup_tz() {
export XDG_CONFIG_HOME="/home/user/.config"
sxmo_hook_statusbar.sh time >/dev/null 2>&1 || {
pkill -9 -x conky >/dev/null 2>&1 || true
(DISPLAY=:0 CONKY_DPY=:0 setsid conky -c /home/user/.config/sxmo/conky.conf >/dev/null 2>&1 </dev/null &)
DISPLAY=:0 CONKY_DPY=:0 conky -c /home/user/.config/sxmo/conky.conf -d >/dev/null 2>&1 </dev/null || true
}
' >/dev/null 2>&1 || true
fi