25 lines
463 B
Plaintext
25 lines
463 B
Plaintext
|
#! /usr/bin/env bash
|
||
|
#
|
||
|
# Simple wmstartup service
|
||
|
# Copyright (C) 2018 salt <salt@lap-th-e560-0>
|
||
|
#
|
||
|
# Distributed under terms of the MIT license.
|
||
|
#
|
||
|
|
||
|
source $DTF_SERVICES_DIR/common.bash
|
||
|
service_name="Conky"
|
||
|
service_process="conky"
|
||
|
|
||
|
function start() {
|
||
|
if ! prestart; then
|
||
|
svc_log "Failed pre-start checks"
|
||
|
return 1
|
||
|
fi
|
||
|
for file in $XDG_CONFIG_HOME/conky/*.conf; do
|
||
|
svc_log "Starting with config $file"
|
||
|
conky -c $file > /dev/null 2>&1 &
|
||
|
done
|
||
|
return 0
|
||
|
}
|
||
|
|