Concession: Move configs to here
This commit is contained in:
31
.config/concession/services/19_conky.dtf
Executable file
31
.config/concession/services/19_conky.dtf
Executable file
@@ -0,0 +1,31 @@
|
||||
#! /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"
|
||||
svc_logstart conky -c $file
|
||||
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" 2
|
||||
break
|
||||
fi
|
||||
done
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user