-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfigure
More file actions
executable file
·245 lines (224 loc) · 7.85 KB
/
configure
File metadata and controls
executable file
·245 lines (224 loc) · 7.85 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
#!/bin/sh
#
#
# This file is part of Sunlite for BitchX.
#
# Sunlite for BitchX is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# Foobar is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Sunlite for BitchX; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
################################################################################
#
echo
echo -e "Este es el script de configuración para Sunlite for BitchX"
echo -e "----------------------------------------------------------"
echo -e "Si quieres modificar algo de lo que aquí has definido edita el archivo config o reejecuta este script de configuración. Ten en cuenta que si lo reejecutas tendrás que definir todas las opciones de nuevo"
echo
echo -n "¿Quieres usar multiventana (Triple ventana en pantalla (Status/Privados/Principal)? [S/n] "
read Partir
if test "$Partir" == "n" || test "$Partir" == "N"
then Partir=0
else Partir=1
echo
echo "Ordena las ventanas: (1) Arriba (2) Centro (3) Abajo"
echo -n "¿Dónde coloco Estado? [1/2/3] [Default=1] "
read Pos1
if ! ( test "$Pos1" == "1" || test "$Pos1" == "2" || test "$Pos1" == "3" ) || test "$Pos1" == ""
then Pos1=1
fi
echo -n "¿Dónde coloco Privados? [1/2/3] [Default=2] "
read Pos2
if ! ( test "$Pos2" == "1" || test "$Pos2" == "2" || test "$Pos2" == "3" ) || test "$Pos2" == ""
then if test "$Pos1" == "1" || test "$Pos1" == "3"
then Pos2=2
else Pos2=1
fi
else if ( test "$Pos1" == "$Pos2" && test "$Pos1" == "1" )
then Pos2=2
elif ( test "$Pos1" == "$Pos2" && test "$Pos1" != "1" )
then Pos2=1
fi
fi
if ( test "$Pos1" == "1" && test "$Pos2" == "2" ) || ( test "$Pos1" == "2" && test "$Pos2" == "1" )
then Pos3=3
elif ( test "$Pos1" == "2" && test "$Pos2" == "3" ) || ( test "$Pos1" == "3" && test "$Pos2" == "2" )
then Pos3=1
else Pos3=2
fi
fi
echo
echo -n "Define la ruta donde se encuentran tus archivos música en mp3: [/var/mp3/] "
read Mp3dir
if test "$Mp3dir" == ""
then Mp3dir="/var/mp3/"
fi
echo
echo -n "¿Quieres informar a los usuarios del canal la música que oyes en cada momento? [s/N] "
read Notif_mp3
if test "$Notif_mp3" == "s" || test "$Notif_mp3" == "S"
then Notif_mp3=1
else Notif_mp3=0
fi
echo
echo -n "¿Quieres que se te abra un privado automáticamente cuando alguien te envie un mensaje? [s/N] "
read WinQuery
if test "$WinQuery" == "s" || test "$WinQuery" == "S"
then WinQuery=1
else WinQuery=0
fi
echo
echo -n "¿Quieres usar colores en el script? [s/N] "
read Color
if test "$Color" == "s" || test "$Color" == "S"
then Color="si"
echo
echo -n "¿Qué tema quieres usar? [(1) Default (2) BaSS Design (3) gentoo ] "
read theme
if test "$theme" == "bass" || test "$theme" == "BaSS" || test "$theme" == "BaSS Design" || test "$theme" == "bass design" || test "$theme" == "2"
then theme=bass
else if test "$theme" == "gentoo" || test "$theme" == "3"
then theme=gentoo
else theme=Default
fi
fi
else Color="no"
fi
echo
echo -n "¿Quieres TimeStamp en mensajes y privados? [s/N] "
read Hora
if test "$Hora" == "s" || test "$Hora" == "S"
then Hora="[\$Magenta\[\$Amarillo\\\$Z\$Magenta\] ]"
else Hora=""
fi
echo
echo -n "Activación de sonido en el script [s/N] "
read Sonido
if test "$Sonido" == "s" || test "$Sonido" == "S"
then Sonido=1
else Sonido=0
fi
echo
echo -n "¿Usamos ircha cuando se nos nombre en el canal? [s/N] "
read ircha
if test "$ircha" == "s" || test "$ircha" == "S"
then ircha=1
else ircha=0
fi
echo
echo -n "Nick para away on: "
read nick_awayOn
echo
echo -n "Nick para away off: "
read nick_awayOff
echo
echo -n "Mensaje de salida por defecto: [Sunlite v1.2 for BitchX] "
read Msg_quit
if test "$Msg_quit" == ""
then Msg_quit="Sunlite v1.2 for BitchX"
fi
echo
echo -n "Mensaje de salida de canal por defecto : [Sunlite v1.2 for BitchX] "
read Msg_part
if test "$Msg_part" == ""
then Msg_part="Sunlite v1.2 for BitchX"
fi
echo
echo -n "¿Preferirías usar como quits mensajes aleatorios de fortune? [s/N]"
read fortune
if test "$fortune" == "s" || test "$fortune" == "S"
then
fortune=1
if test -d "/usr/share/games/fortunes/"
then for i in `ls /usr/share/games/fortunes/ | grep -v .dat`
do cat /usr/share/games/fortunes/$i | grep -v "%" | grep -v "\-\-" > ~/.BitchX/BitchX.quit
done
fi
Msg_part=""
else fortune=0
fi
echo
echo -n "¿Activamos autojoin por defecto? [s/N] "
read Autojoin
if test "$Autojoin" == "s" || test "$Autojoin" == "S"
then
Autojoin=1
echo
echo -n "Canales que deseas incluir en el Autojoin "
read Canales_Aj
else Autojoin=0
fi
echo
echo -n "¿Qué tecla prefieres para las Hot-keys? [ctrl/ALT] "
read hotkey
if test "$hotkey" == "ctrl" || test "$hotkey" == "CTRL"
then hotkey=ctrl
else hotkey=alt
fi
echo
echo -n "¿Deseas ignorar los molestos Ctcp's SOUND de determinados scripts? [s/N] "
read Ctcp_mp3
if test "$Ctcp_mp3" == "s" || test "$Ctcp_mp3" == "S"
then Ctcp_mp3=1
else Ctcp_mp3=0
fi
if test -f config
then echo -n "Existe un fichero config anterior, ¿sobreescribir? [s/N] "
read write
if test "$write" == "s" || test "$write" == "S"
then echo -e "@ Partir=$Partir\n@ Pos1=$Pos1\n@ Pos2=$Pos2\n@ Pos3=$Pos3\n@ Mp3dir=[$Mp3dir]\n@ Notif_mp3=$Notif_mp3\n@ WinQuery=$WinQuery\n@ theme=[$theme]\nColor $Color\n@ Hora=$Hora\n@ Sonido=$Sonido\n@ ircha=$ircha\n@ nick_awayOn=[$nick_awayOn]\n@ nick_awayOff=[$nick_awayOff]\n@ Msg_quit=[$Msg_quit]\n@ Msg_part=[$Msg_part]\n@ Autojoin=$Autojoin\n@ Canales_Aj=[$Canales_Aj]\n@ fortune=$fortune\n@ hotkey=[$hotkey]\n@ Ctcp_mp3=$Ctcp_mp3" > config
else exit 1
fi
else echo -e "@ Partir=$Partir\n@ Pos1=$Pos1\n@ Pos2=$Pos2\n@ Pos3=$Pos3\n@ Mp3dir=[$Mp3dir]\n@ Notif_mp3=$Notif_mp3\n@ WinQuery=$WinQuery\n@ theme=[$theme]\nColor $Color\n@ Hora=$Hora\n@ Sonido=$Sonido\n@ ircha=$ircha\n@ nick_awayOn=[$nick_awayOn]\n@ nick_awayOff=[$nick_awayOff]\n@ Msg_quit=[$Msg_quit]\n@ Msg_part=[$Msg_part]\n@ Autojoin=$Autojoin\n@ Canales_Aj=[$Canales_Aj]\n@ fortune=$fortune\n@ hotkey=[$hotkey]\n@ Ctcp_mp3=$Ctcp_mp3" > config
fi
echo -e "
@ Conferencia = 0
@ snap = 0
set cloak 1
set usermode +i-ws
set status_window ^Activa^
set status_query 8[15Privado: 7%Q8]
set status_hold --más--
set status_notify 8[Charlan: %F]
set realname orion
set flood_protection off
set deop_on_Deopflood 5
set deop_on_kickflood 5
set dcc_autoresume on
set dcc_autoget off
set clock_24hour on
set auto_join_on_invite on
set auto_away on
set auto_Away_time 1800
set mircs on
set beep on
set STATUS_FORMAT2 8,14Topic 3: 14%-
set STATUS_FORMAT3 8,14Topic 3: 14%-
set STATUS_UMODE 8(10+15%#8)
set STATUS_MODE 8(10+15%+8)
set STATUS_USERS 8[7O/15%! 7N/15%! 7I/15%! 7V/15%! 7F/15%!8]
set STATUS_OPER_KILLS 8[4nk/15%K 4ok/15%K8]
set STATUS_MSGCOUNT 7Aw8[15%^8]
set STATUS_MAIL 8[7Mail: 15%M8]
set STATUS_LAG 8[7Lag 15%L8]
set STATUS_HOLD_LINES 8(15%B8)
set STATUS_CHANNEL 7%C
set INPUT_PROMPT 8,14[4\$C8]7,14
set MANGLE_LOGFILES ANSI,COLOR,REVERSE,UNDERLINE,BOLD,BLINK
" >> config
if test "$theme" == "gentoo"
then echo -e "wset STATUS_FORMAT 8,13[ 3%T 8][15%*%@%=10%N7%#%A8]%M [10%C%+3%W8] 6%Q %H%B%F 8%S
wset STATUS_FORMAT1 8,13[ 3%T 8][15%*%@%=10%N7%#%A8]%M [10%C%+3%W8] 6%Q %H%B%F 8%S" >> config
else echo -e "wset STATUS_FORMAT 8,2[ 3%T 8][15%*%@%=10%N7%#%A8]%M [10%C%+3%W8] 6%Q %H%B%F 8%S
wset STATUS_FORMAT1 8,2[ 3%T 8][15%*%@%=10%N7%#%A8]%M [10%C%+3%W8] 6%Q %H%B%F 8%S" >> config
fi
# Copyright © 2002 Javier Carranza