#!/bin/bash

if [ -d ~/.config/conky/LANGUAGES/$LANG ];
then
  rm -f ~/.conkyrc
  ln -s ~/.config/conky/LANGUAGES/$LANG/.conkyrc ~/
fi

# The following script is only executed at the first booting,
# because .config/user-dirs
if [ -d ~/.config/user-dirs/LANGUAGES/$LANG ]; 
then
  rm -f ~/.config/user-dirs.dirs
  mv ~/.config/user-dirs/LANGUAGES/$LANG/user-dirs.dirs ~/.config/
  sh ~/.config/user-dirs/LANGUAGES/$LANG/create_dirs.sh
  rm -rf ~/.config/user-dirs   
fi
ob-restart &

#pcmanfm --desktop &
pcmanfm --daemon-mode &
xscreensaver -no-splash &
eval $(gnome-keyring-daemon -s --components=pkcs11,secrets,ssh,gpg) &
compositor --start &
gnuinos-touchpad &
bookmarks-config &
hotcorners --daemon &
xscreensaver -no-splash &
xset r rate 250 25 &
xset b off &
(sleep 1s && nitrogen --restore) &
(sleep 5s && tint2) &
#(sleep 5s && tint2 -c ~/.config/tint2/tint2rconf) &
(sleep 5s && volti) &
(sleep 5s && parcellite) &
(sleep 5s && nitrogen --restore) &
(sleep 10s && update-notifier) &
(sleep 10s && fdpowermon) &
(sleep 10s && nitrogen --restore) &
(sleep 15s && conky -q) &



