You are not logged in.

#1 2018-10-12 15:49:26

Dentrax
Member
Registered: 2018-08-05
Posts: 21

i3 - won't load configuration file when i run with (startx i3)

Hello,

I have tried different i3 config files that i downloaded from Github. I don't know why but when i start i3 from tty0 via

startx i3

, it looks like the;

https://ibb.co/eg2vop


The i3 terminal is coming and the keyboard is disabled. Looks like the i3 was frozen. Nothing works except the TTY-X (CTRL+ALT+Number) transitions.

Note: I did step by step as described in the i3 ArchWiki.

Config file: https://ptpb.pw/C_Te (in ~/.config/i3/config)

Why is this happening? How do I resolve the bug? Is this a bug or is there a point I don't understand?

Thank you!

Mod Edit - Replaced oversized image with link.
CoC - Pasting pictures and code

Last edited by Slithery (2018-10-12 15:55:03)

Offline

#2 2018-10-12 15:52:57

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: i3 - won't load configuration file when i run with (startx i3)

Configure a proper ~/.xinitrc and run startx instead of startx i3.
https://wiki.archlinux.org/index.php/Xinit


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2018-10-12 15:54:32

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

Re: i3 - won't load configuration file when i run with (startx i3)

Dentrax wrote:

I have tried different i3 config files that i downloaded from Github

Then post your question to issues section of those github repos.

If you want help here, you should follow our wiki and at very least show us what is in these copied configs that you are using.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2018-10-12 15:55:41

Dentrax
Member
Registered: 2018-08-05
Posts: 21

Re: i3 - won't load configuration file when i run with (startx i3)

Slithery wrote:

Configure a proper ~/.xinitrc and run startx instead of startx i3

My .xinitrc file:

session=${1:-openbox}

case $session in
    i3|i3wm           		) exec i3;;
    xfce|xfce4        		) exec startxfce4;;
    openbox|openbox-session ) exec openbox-session;;
    *                 ) exec $1;;
esac

I did this way because I want to use more than one window manager. Is that what is causing the problem?

Offline

#5 2018-10-12 15:57:51

Dentrax
Member
Registered: 2018-08-05
Posts: 21

Re: i3 - won't load configuration file when i run with (startx i3)

Trilby wrote:
Dentrax wrote:

I have tried different i3 config files that i downloaded from Github

Then post your question to issues section of those github repos.

If you want help here, you should follow our wiki and at very least show us what is in these copied configs that you are using.

Oh, sorry for misunderstanding. I have tried about 5-6 different config and they are all the same problem.
- Config uploaded.

Offline

#6 2018-10-12 16:01:15

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

Re: i3 - won't load configuration file when i run with (startx i3)

Thanks for the addition.

Your xinitrc is still not complete.  Please see the wiki page on xinit.  But the missing portions of your xinitrc should not cause the problem you are facing.

It looks like no WM is starting at all, rather just a terminal.  Can you post your xorg log?

Are you by chance editing your xinitrc and/or running X as root (or with sudo)?

Last edited by Trilby (2018-10-12 16:02:28)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2018-10-12 16:04:46

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,601

Re: i3 - won't load configuration file when i run with (startx i3)

startx sesion=i3 

or

startx /usr/bin/i3

but simply startx i3 wont work, startx should exec openbox if you had it installed, and configured.

Offline

#8 2018-10-12 16:07:27

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

Re: i3 - won't load configuration file when i run with (startx i3)

qinohe, what are you basing any of that on?  Did you read his xinitrc?  "session" is set as the first parameter if there is one.  You cannot pass variable assignment as a command line parameter to a script, potentially you could export session as an environment variable, but it'd still be overwritten by the first line of his xinitrc.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#9 2018-10-12 16:09:05

Dentrax
Member
Registered: 2018-08-05
Posts: 21

Re: i3 - won't load configuration file when i run with (startx i3)

Trilby wrote:

Thanks for the addition.

Your xinitrc is still not complete.  Please see the wiki page on xinit.  But the missing portions of your xinitrc should not cause the problem you are facing.

It looks like no WM is starting at all, rather just a terminal.  Can you post your xorg log?

Are you by chance editing your xinitrc and/or running X as root (or with sudo)?

My Xorg log file: https://ptpb.pw/-mkB

I tried with sudo, nothing changed. sad

Offline

#10 2018-10-12 16:11:15

Dentrax
Member
Registered: 2018-08-05
Posts: 21

Re: i3 - won't load configuration file when i run with (startx i3)

qinohe wrote:
startx sesion=i3 

or

startx /usr/bin/i3

but simply startx i3 wont work, startx should exec openbox if you had it installed, and configured.

I tried with "startx /usr/bin/i3" and annoying console screen did not come. The screen was completely yellow now. smile

Offline

#11 2018-10-12 16:12:19

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,601

Re: i3 - won't load configuration file when i run with (startx i3)

Oops Trilby didn't notice, thanks,  glad there are people awake here.;)

@Dentrax, what the others already said but here you go,   https://wiki.archlinux.org/index.php/Xinit

Last edited by qinohe (2018-10-12 16:24:40)

Offline

#12 2018-10-12 16:57:28

Dentrax
Member
Registered: 2018-08-05
Posts: 21

Re: i3 - won't load configuration file when i run with (startx i3)

qinohe wrote:

Oops Trilby didn't notice, thanks,  glad there are people awake here.;)

@Dentrax, what the others already said but here you go,   https://wiki.archlinux.org/index.php/Xinit

Oh thank you! "xinit i3" works very well now! But after doing this, "startx" does not work anymore. Openbox no longer opens automatically when I write "startx". ("xinit openbox" request sudo permission) It actually works but it's like the picture in the topic. (just purple console screen)

Xorg Log: https://ptpb.pw/ryFD

Last edited by Dentrax (2018-10-12 16:58:26)

Offline

#13 2018-10-12 18:04:33

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,601

Re: i3 - won't load configuration file when i run with (startx i3)

Lets start with you showing us your newly created xinitrc.

Offline

#14 2018-10-13 04:23:08

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: i3 - won't load configuration file when i run with (startx i3)

idk about you, but for me, I had to use $2 for my case input, as startx would always output something static as $1 (I don't remember, xterm or something?). if unsure, just add something like

echo $@ > out

to the start of your xinitrc and it will output what startx is passing on.
also, for me, I just use the *) in case to determine my default session. here's mine, as an example:

case $2 in
 i3*)                           exec i3;;
 cinn*)                         exec cinnamon-session;;
 *)                             exec i3
esac

Offline

Board footer

Powered by FluxBB