home/.config/dtfscripts/services/conky.dtf

32 lines
587 B
Plaintext
Raw Normal View History

#! /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() {
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
}
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"
break
fi
done
return 0
}