summaryrefslogtreecommitdiffstats
path: root/scripts/run_conky.sh
blob: abdea35a2e1f6903777ee7e4c62bc15f05e95e44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

if [ "$1" != "start" ]; then
    killall -9 conky
    killall -9 rainlendar2
    killall -9 rainlendar2.bin
fi

if [ "$1" != "stop" ]; then
    python /opt/scripts/unlock.py gui || exit

    killall -9 gpg-agent
    pass test

    conky -q -d -c /etc/conky/sysinfo.conf
    conky -q -d -c /etc/conky/netstat.conf
    conky -q -d -c /etc/conky/gentoo.conf
    conky -q -d -c /etc/conky/logs.conf
    conky -q -d -c /etc/conky/todo.conf
    # todo should be loaded before forecast
    sleep 0.3
    conky -q -d -c /etc/conky/forecast.conf
    /opt/rainlendar2/rainlendar2 --quiet &
fi