dtfscripts: Major refactor with more modular service startup
This commit is contained in:
23
.config/dtfscripts/services/compton.dtf
Executable file
23
.config/dtfscripts/services/compton.dtf
Executable file
@@ -0,0 +1,23 @@
|
||||
#! /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="Compton"
|
||||
service_process="compton"
|
||||
|
||||
function start() {
|
||||
if [[ "$HOST" == "vm-*" ]]; then
|
||||
svc_log "Will not start: in a VM"
|
||||
return 0
|
||||
else
|
||||
svc_log "Starting"
|
||||
$service_process > /dev/null 2>&1 &
|
||||
return 0
|
||||
fi
|
||||
}
|
||||
|
Reference in New Issue
Block a user