#!/bin/bash
#definir-escritorio-fluxbox
#inicio2 start

# configura el teclado de X en espaol

echo Configurando el teclado en Entorno Grfico en espaol

setxkbmap -model pc105 -layout es -variant basic


#Pegado de /root/.openbox/openboxstartup...

# openbox startup-script:
#
# Lines starting with a '#' are ignored.
# Creado por Marcos Guglielmetti 26-7-05 para Musix GNU Linux

# Agregado para dejar en claro cul es el $HOME (lo necesitan los scripts de xfce4, al menos)
HOME=/root
# agregadas las variables de entorno
LANG=es_ES@euro
LC_CTYPE="es_ES@euro"
LC_NUMERIC="es_ES@euro"
LC_TIME="es_ES@euro"
LC_COLLATE="es_ES@euro"
LC_MONETARY="es_ES@euro"
LC_MESSAGES="es_ES@euro"
LC_PAPER="es_ES@euro"
LC_NAME="es_ES@euro"
LC_ADDRESS="es_ES@euro"
LC_TELEPHONE="es_ES@euro"
LC_MEASUREMENT="es_ES@euro"
LC_IDENTIFICATION="es_ES@euro"
LC_ALL=es_ES@euro




# You can set your favourite wallpaper here if you don't want
# to do it from your style.
#
 #bsetbg -f /usr/local/lib/musix-libre-inferior-derecho.png
#
# This sets a black background

/usr/bin/bsetroot -solid black

# This shows the fluxbox-splash-screen
#fbsetbg -C /usr/share/fluxbox/splash.jpg

# Other examples. Check man xset for details.
#
# Turn off beeps:
# xset -b
#
# Increase the keyboard repeat-rate:
# xset r rate 195 35
#
# Your own fonts-dir:
# xset +fp /root/.font
#
# Your favourite mouse cursor:
# xsetroot -cursor_name right_ptr
#
# Change your keymap:
# xmodmap ~/.Xmodmap



# Applications you want to run with fluxbox.
# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END.
#
# unclutter -idle 2 &
# wmnd &
# wmsmixer -w &
# idesk &
# agregu rox
rox-filer --pinboard=OPENBOX &

# Cargando fbpanel
sleep 2s
fbpanel &

# Configurando placa de sonido
#sleep 2s
#/bin/alsa-conf-abrir-terminal.sh &

# desinstal xfce4 por problemas con GTK y libxfce.so
# cargando panel de xfce4
#xfce4-panel &


#Ya fue hecho en /bin/inicio-ob
#echo Configurando el teclado en Entorno Grfico en espaol
#setxkbmap -model pc105 -layout es -variant basic



# And last but not least we start openbox.
# Because it is the last app you have to run it with ''exec'' before it.
exec /usr/bin/openbox
