Move conky in an auto configured user xinit

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
master
Stacy Harper 4 years ago committed by Maarten van Gompel
parent e0cff05b0c
commit 7bbb56723f
  1. 20
      scripts/core/sxmo_xinit.sh

@ -54,12 +54,6 @@ defaultkeyboard() {
}
daemons() {
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/appcfg/conky.conf -d
fi
autocutsel &
autocutsel -selection PRIMARY &
sxmo_statusbar.sh &
@ -71,10 +65,22 @@ daemonsneedingdbus() {
sxmo_lisgdstart.sh &
}
defaultconfig() {
mkdir -p "$XDG_CONFIG_HOME/sxmo"
echo '#!/usr/bin/env sh
conky -c /usr/share/sxmo/appcfg/conky.conf -d
' > "$XDG_CONFIG_HOME/sxmo/xinit"
}
customxinit() {
set -o allexport
# shellcheck disable=SC1090
[ -f "$XDG_CONFIG_HOME/sxmo/xinit" ] && . "$XDG_CONFIG_HOME/sxmo/xinit"
[ ! -f "$XDG_CONFIG_HOME/sxmo/xinit" ] && defaultconfig
# shellcheck disable=SC1090
. "$XDG_CONFIG_HOME/sxmo/xinit"
set +o allexport
}

Loading…
Cancel
Save