Re: Gnome, Mount, winSOSnt y Novell
"Arregui-García, Javier" wrote:
> ¡Algún día, no! ¡Ahora! :-))
>
> Javi
>
> > -----Mensaje original-----
> > De: Juan C. Amengual [mailto:jcamen@inf.uji.es]
> > (algún día os contaré cómo usando el fichero "autostart" de
> > wmaker y una macro de gawk
> > consigo que al hacer login en el xdm se me "coloque"
> > automáticamente un tema de wmaker
> > elegido al azar entre todos los que tengo)
cediendo a la presión popular ... ;-)
jcamen@cerbero_(~)_$ cat GNUstep/Library/WindowMaker/autostart
#!/bin/sh
# fijo parámetros de respuesta del "mouse"
xset m 20/10 4
# fijo parámetros DPMS (Energy Star) pa'l monitor (standby, suspend y off en segundos)
xset dpms 2700 3600 5400 ---> en segundos
# matar el xscreensaver general
xscreensaver-command -exit
# arranco xscreensaver para que lea mi configuración de usuario (.xscreensaver)
xscreensaver &
# elección aleatoria de firma del e-mail. El "echo" es para ver salida en .xsession-errors
kk1=~/Firmas/
kk2=`ls -l $kk1 | gawk -f ~/SelFicheAzar.awk`
kk=$kk1$kk2
# copio firma a fichero membrete (fichero de firma pa'l Notescapes)
cp "$kk" ~/membrete
echo "La firma es $kk."
# elección aleatoria de tema del WindowMaker (general del sistema + temas particulares)
kk=`ls -l /usr/share/WindowMaker/Themes/ ~/GNUstep/Library/WindowMaker/Themes/ | gawk -f
~/SelFicheAzar.awk`
# fijar tema elegido en wmaker. El "echo" es para ver salida en .xsession-errors
setstyle "$kk"
echo "El estilo es $kk."
# Lanzo el módulo de gestión de sonidos de wmaker
wmsound &
# ... y el reloj. La opción "-exe" permite que al clicar en el reloj me "diga" la hora
asclock -shape -led green2 -exe 'saytime' &
# fijo parámetros SoundBlaster (guardados en mi .aumixrc)
aumix -L > /dev/null
jcamen@cerbero_(~)_$ cat SelFicheAzar.awk
BEGIN { i = 0; path = ""; }
/^\// { l = length($1); path = substr($1,1,l-1); }
/^-/ { a[i] = path $9;
for (j = 10; j <= NF; j++)
a[i] = a[i] " " $j;
i++; }
END { srand();
j = entazar(i);
print a[j] }
function entazar(n) {
return int(n * rand());
}
Saludos,
================================================================================
JUAN CARLOS AMENGUAL Suddenly I stop,
UNIVERSIDAD JAUME I but I know it's too late.
DEPARTAMENTO DE INFORMÁTICA I'm lost in a forest, all alone.
CAMPUS DE RIU SEC, EDIFICIO TI The girl was never there, it's always the same,
CASTELLON, 12071. SPAIN. I'm running towards nothing
Phone: +34 964 728361 again and again and again and again.
Fax: +34 964 728435 Robert Smith (The Cure)
e-mail: jcamen@inf.uji.es - "A Forest", Seventeen Seconds, 1980,
Fiction Rec. -
================================================================================
Reply to: