Added a more detailed xinit_template and added some default media resources (wallpaper,startup tune,keypress sound) that are preconfigured in the template

This commit is contained in:
Maarten van Gompel 2021-03-29 12:09:43 +02:00
parent 7bbb56723f
commit 5f82699014
7 changed files with 111 additions and 7 deletions

View file

@ -67,17 +67,14 @@ daemonsneedingdbus() {
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"
cp /usr/share/sxmo/appcfg/xinit_template "$XDG_CONFIG_HOME/sxmo/xinit"
chmod u+rx "$XDG_CONFIG_HOME/sxmo/xinit"
}
customxinit() {
set -o allexport
# shellcheck disable=SC1090
[ ! -f "$XDG_CONFIG_HOME/sxmo/xinit" ] && defaultconfig
[ ! -e "$XDG_CONFIG_HOME/sxmo/xinit" ] && defaultconfig
# shellcheck disable=SC1090
. "$XDG_CONFIG_HOME/sxmo/xinit"