From e455d31e55991dd8621192f12e047f41615eaf88 Mon Sep 17 00:00:00 2001 From: Maarten van Gompel Date: Fri, 26 Jun 2020 23:27:17 +0200 Subject: [PATCH] read custom conky.conf if available Signed-off-by: Miles Alan --- scripts/core/sxmo_xinit.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/core/sxmo_xinit.sh b/scripts/core/sxmo_xinit.sh index 0efa77f..efd1dd7 100755 --- a/scripts/core/sxmo_xinit.sh +++ b/scripts/core/sxmo_xinit.sh @@ -15,11 +15,13 @@ xset s off -dpms xrdb /usr/share/sxmo/xresources_xcalc.xr synclient TapButton1=1 TapButton2=3 TapButton3=2 MinSpeed=0.25 -# Kill old hanging daemons -pkill conky - # Start daemons -conky -c /usr/share/sxmo/conky.conf -d +pkill conky +if [ -e "$XDG_CONFIG_HOME/sxmo/conky.conf" ]; then + conky -c $XDG_CONFIG_HOME/sxmo/conky.conf -d +else + conky -c /usr/share/sxmo/conky.conf -d +fi keynav & autocutsel & autocutsel -selection PRIMARY &