#!/bin/sh

userresources=$XDG_CONFIG_HOME/X11/Xresources
usermodmap=$XDG_CONFIG_HOME/X11/Xmodmap

if [ -f "$userresources" ]; then
	xrdb -merge "$userresources"
fi

if [ -f "$usermodmap" ]; then
	xmodmap "$usermodmap"
fi

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

##### Launching languagetool server
#if [ -f /usr/bin/languagetool ]; then
#	languagetool --http --port 26598 --allow-origin &
#fi

##### Syncthing
#if [ -f /usr/bin/syncthing ]; then
#	syncthing -logflags=0 -no-browser --allow-newer-config &
#fi

##### Execute Qtile Wm
# exec qtile

##### Execute Awesome Wm
# exec awesome

##### Execute I3 Wm
#exec i3

exec emacs -mm --debug-init
#exec ratpoison

##### Execute SpectrWm
# exec spectrwm

##### Execute FrankenWm
# exec frankenwm

##### Execute HerbstluftWm
# exec herbstluftwm --locked

##### Execute RatPoison
# exec ratpoison

##### Execute Bspwm
# exec bspwm

##### Execute Subtle Wm
# exec subtle

# exec Hypr
