WM not starting... (Awesome, Herbsluftwm)

I've managed to get herbstluftwm working on manjaro in the past, but after reformatting my computer, I cannot seem to get it working...I thought initially it was something to do with herbs, but now that awesomewm is not starting either, i've noticed that neither manager seems to start according to the xorg.0.log!

Could anyone suggest what I could be doing wrong in starting up either wm? Is my .xinitrc alright? I've tried modifying it in different ways, but nothing seems to change in the xorg.0.log...

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

DEFAULT_SESSION=awesome

# merge in defaults and keymaps

if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

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

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

# start some nice programs

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



get_session(){
	local dbus_args=(--sh-syntax --exit-with-session)
	case $1 in
		awesome) dbus_args+=(awesome) ;;
		bspwm) dbus_args+=(bspwm-session) ;;
		budgie) dbus_args+=(budgie-desktop) ;;
		cinnamon) dbus_args+=(cinnamon-session) ;;
		deepin) dbus_args+=(startdde) ;;
		enlightenment) dbus_args+=(enlightenment_start) ;;
		fluxbox) dbus_args+=(startfluxbox) ;;
		gnome) dbus_args+=(gnome-session) ;;
		i3|i3wm) dbus_args+=(i3 --shmlog-size 0) ;;
		jwm) dbus_args+=(jwm) ;;
		kde) dbus_args+=(startkde) ;;
		lxde) dbus_args+=(startlxde) ;;
		lxqt) dbus_args+=(lxqt-session) ;;
		mate) dbus_args+=(mate-session) ;;
		xfce) dbus_args+=(xfce4-session) ;;
		openbox) dbus_args+=(openbox-session) ;;
		*) dbus_args+=($DEFAULT_SESSION) ;;
	esac

	echo "dbus-launch ${dbus_args[*]}"
}

exec $(get_session)

# # start herbstluftwm in locked mode (it will be unlocked at the end of your
# # autostart)
# exec herbstluftwm --locked

exec awesome
1 Like

I have figured it out! turns out I needed to edit the file /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml

specifically line <value type="string" value="kwin"/> to <value type="string" value="herbstluftwm"/>. With a reboot and following the herb tutorial, a reboot loaded herbs! probably applies to the other WM as well.

In figuring this out, I reformatted my system three times and switched to xfce from kde, and liking it so far!

This solution was taken from here

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by Bytemark