conky-config/wrappers/conky.sh
Jacob Hrbek 4977d43526 sync
2021-06-14 20:01:00 +02:00

16 lines
718 B
Bash
Executable File

#!/bin/sh
# shellcheck shell=sh # Written to comply with IEEE Std 1003.1-2017
#@ Written by Jacob Hrbek <kreyren@fsfe.org> in 14/06/2021 17:39:35 UTC under the terms of GPLv3 license <https://www.gnu.org/licenses/gpl-3.0.en.html>
conky_conkyDir="${conky_conkyDir:-"${HOME}/.config/conky"}"
while [ "$#" -ge 0 ]; do case "$1" in
kill) pkill ${CONKY:-"conky"} ;;
*)
${CONKY:-"conky"} --config="$conky_conkyDir/daemons/top_right.lua" &
${CONKY:-"conky"} --config="$conky_conkyDir/daemons/top_middle.lua" &
${CONKY:-"conky"} --config="$conky_conkyDir/daemons/top_left.lua" &
${CONKY:-"conky"} --config="$conky_conkyDir/daemons/bottom_right.lua"
exit 0
esac; shift 1; done