2018-08-26 16:11:25 -05:00
|
|
|
#! /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
|
|
|
|
}
|
|
|
|
|
2018-08-27 13:09:40 -05:00
|
|
|
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
|
2018-09-27 20:23:15 -05:00
|
|
|
svc_log "Conky may spawn behind the current desktop" 2
|
2018-08-27 13:09:40 -05:00
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|