-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhi_shi3lD
32 lines (31 loc) · 916 Bytes
/
hi_shi3lD
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
#!/bin/bash
# startup file in /usr/local/bin for .twmrc
# shi3lD
# redundanz
# tor
# snort
# clamd
# have fun!!!
LANG="C" && hi &
if [[ $(ps axu | grep -v grep | grep -v nano | grep -v geany | grep -v hi_shi3lD | grep shi3lD) = '' ]] ;
then
if [ $EUID != 0 ];
then
gksudo -gm shi3lD "$0";
else
xterm -title shi3lD-monitor -fg green -geometry 80x15+20-30 -e shi3lD &
sleep 2 ;
sudo -u "$SUDO_USER" transset --name shi3lD-monitor .7 ;
if [[ $(ps axu | grep -v grep | grep -v nano | grep -v geany | grep -v hi_shi3lD | grep redundanz) = '' ]] ;
then
xterm -title redundanz-monitor -fg green -geometry 110x15+507-30 -e redundanz --monitor &
sleep 2 ;
sudo -u "$SUDO_USER" transset --name redundanz-monitor .7 ;
exit 0;
else
exit 0;
fi
fi
else
exit 0 ;
fi