blob: e7188519df22e6ef4e016b3fb60de124b1f1f095 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#!/bin/bash
if [ "$1" != "start" ]; then
killall -9 conky &> /dev/null
killall -9 rainlendar2 &> /dev/null
killall -9 rainlendar2.bin &> /dev/null
fi
if [ "$1" != "stop" ]; then
#No way to do it anymore
python /opt/scripts/unlock.py gui || exit
killall -9 gpg-agent &> /dev/null
/opt/scripts/restart-gpg.sh
pass test > /dev/null
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
# sleep 1
# ps xa | grep gpg-agent | grep -v gpg &> /dev/null
# if [ $? -ne 0 ]; then
# /opt/scripts/restart-gpg.sh
# fi
# Temporarily disabled. Only 2.16 works with google now and we don't have license. Might worth buying if use desktop again.
# /opt/rainlendar2/rainlendar2 --quiet &
fi
|