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>
This commit is contained in:
parent
e0cff05b0c
commit
7bbb56723f
1 changed files with 13 additions and 7 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue