You are not logged in.

#1 2020-05-30 11:54:04

Arden
Member
Registered: 2020-05-30
Posts: 5

[SOLVED] Dwm won't start

Good day, everyone!

I've been using i3wm for a long time and recently i decided to try dwm. I have dwm installed but regardless of what I do with the .xintitrc file, i3 starts up (even if I comment "exec i3" AND "exec dwm"). I have no idea what is causing this behavior and will be grateful for any help.

My .xintitrc file:

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

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

# exec i3
exec dwm

Last edited by Arden (2020-05-30 13:23:39)

Offline

#2 2020-05-30 12:23:25

seth
Member
Registered: 2012-09-03
Posts: 51,056

Re: [SOLVED] Dwm won't start

How do you start X11? startx or xinit?

Offline

#3 2020-05-30 12:36:09

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: [SOLVED] Dwm won't start

This is a manjaro system?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2020-05-30 13:10:30

Arden
Member
Registered: 2020-05-30
Posts: 5

Re: [SOLVED] Dwm won't start

seth wrote:

How do you start X11? startx or xinit?

I realized that I had to check my shell profile file. Changing "exec startx /usr/bin/i3" for "exec startx dwm" in .zprofile solved the problem.

Thank you for the hint! smile

Offline

#5 2020-05-30 13:11:52

seth
Member
Registered: 2012-09-03
Posts: 51,056

Re: [SOLVED] Dwm won't start

Starting "startx anything" is a bad idea to begin with.

Trilby wrote:

This is a manjaro system?

Offline

#6 2020-05-30 13:14:25

Arden
Member
Registered: 2020-05-30
Posts: 5

Re: [SOLVED] Dwm won't start

Trilby wrote:

This is a manjaro system?

No, I'am using Arch.

Offline

#7 2020-05-30 13:40:58

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: [SOLVED] Dwm won't start

If you want to use an ~/.xinitrc you should not have anything after `exec startx` in your shell profile.

I am curious, though, where that xinitrc came from.  That is the default skeleton xintirc used in manjaro, parabola, and perhaps some other spin offs, but arch's has been quite different for a long time.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB