#! /usr/bin/env bash
#
# Simple wmstartup service
# Copyright (C) 2018 salt <salt@lap-th-e560-0>
#
# Distributed under terms of the MIT license.
#

service_name="Conky"
service_process="conky"

function start-extra() {
	for i in {1..100}; do
		if xprop -name "Conky" > /dev/null 2>&1; then break; fi
		sleep 0.01
		if (( $i > 99 )); then
			svc_log "Conky may spawn behind the current desktop" 2
			break
		fi
	done
	return 0
}