2

I am trying to use startx to launch different desktops according to an argument using case...esac

This is my .xinitrc

mate(){
    (sleep 5 && conky) &
    mate-session
} 

case $1 in
    d2) i3;;
     *) mate;;
esac

When I use startx launches by default mate (as it should be). However, when using startx d2 nothing happens.

What I am doing wrong?

EDIT:

I've just found out that using xinit d2 it launches the desktop environment but not with startx d2

  • Do you have i3 installed properly? Can you launch it manually? – scitronboy Mar 13 at 18:06
  • Yes. If I use startx i3 it launches perfectly fine. – potato Mar 13 at 18:39
  • what if you try changing i3 in the script to startx i3? It's redundant, but it could work... – scitronboy Mar 13 at 19:14
  • Nope. Still the same. – potato Mar 13 at 19:54
  • Weird. What about adding some debug messages. Add one at the top that says echo ".xinitrc running" and then replace the i3 with echo "running i3" and then see what happens when you type startx d2. – scitronboy Mar 13 at 20:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.