#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
WM=i3
if (( $# == 1 ))
then
  WM=$1
fi

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

export EDITOR="vim"
export CUPS_GSSSERVICENAME=HTTP
#srandrd conkyshit/displays

[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources

volnoti &
#xxkb &
owncloud &

# exec gnome-session
# exec startkde
# exec startxfce4
#exec kdm
# ...or the Window Manager of your choice
rm ~/.i3.log.old
mv ~/.i3.log ~/.i3.log.old
rm ~/.i3.log
#exec $WM -d all -V >> ~/.i3.log
exec $WM >> ~/.i3.log
