24 lines
441 B
Plaintext
24 lines
441 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="sxhkd"
|
||
|
service_process="sxhkd"
|
||
|
|
||
|
function prestart() {
|
||
|
if ! which $service_process > /dev/null 2>&1; then
|
||
|
svc_log "Could not find process"
|
||
|
fi
|
||
|
if ! pgrep bspwm > /dev/null 2>&1; then
|
||
|
svc_log "Not under bspwm"
|
||
|
return 1
|
||
|
fi
|
||
|
return 0
|
||
|
}
|
||
|
|