Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] getting start x to look at .xinitrc
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
moevot
n00b
n00b


Joined: 15 Mar 2019
Posts: 23

PostPosted: Tue Apr 02, 2019 6:04 pm    Post subject: [SOLVED] getting start x to look at .xinitrc Reply with quote

Hey guys,
I can't seem to get startx to use .xinitrc instead of the standard file in /etc/X11 which automatically will open up twm and xterm. I'm trying to run i3-gaps by the way. Could somebody post their working .xinitrc so I could see how it is formatted?
Much appreciated, lads.


Last edited by moevot on Tue Apr 02, 2019 8:34 pm; edited 2 times in total
Back to top
View user's profile Send private message
moevot
n00b
n00b


Joined: 15 Mar 2019
Posts: 23

PostPosted: Tue Apr 02, 2019 6:18 pm    Post subject: Reply with quote

Btw,
If I edit /etc/X11/xinit/xinitrc where I comment out the if statement that make twm and xterm run while adding
Code:
exec i3
startx will launch i3 successfully.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30959
Location: here

PostPosted: Tue Apr 02, 2019 6:41 pm    Post subject: Reply with quote

Strange a .xinitrc file in your home directory should be work, see https://wiki.gentoo.org/wiki/I3#Starting_i3
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
moevot
n00b
n00b


Joined: 15 Mar 2019
Posts: 23

PostPosted: Tue Apr 02, 2019 6:49 pm    Post subject: Reply with quote

Ya that's what I thought. So the i3 gentoo wiki just says to add
Code:
exec i3
to the ~/.xinitrc file but that file did not exist until I created it so what else do I need to add to that file? Does it need to have a shebang or something like that?
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30959
Location: here

PostPosted: Tue Apr 02, 2019 7:01 pm    Post subject: Reply with quote

moevot wrote:
the ~/.xinitrc file but that file did not exist until I created it so what else do I need to add to that file? Does it need to have a shebang or something like that?

No, you must only put "exec i3"
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Tue Apr 02, 2019 7:08 pm    Post subject: Reply with quote

Anything in ~/.xsession-errors?
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
moevot
n00b
n00b


Joined: 15 Mar 2019
Posts: 23

PostPosted: Tue Apr 02, 2019 7:18 pm    Post subject: Reply with quote

Ok so i have the file /home/USER/.xinitrc that only says "exec i3". X11 works fine when i have twm and xterm installed so i know that is not the problem. But X11 still gives me a black screen when trying to use i3. I am getting a 'nonfatal' error that says i have an unusually high key code 372 but that should not be a problem. What else should I try?
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6102
Location: Dallas area

PostPosted: Tue Apr 02, 2019 7:28 pm    Post subject: Reply with quote

what does "ls -l ~/.xinitrc" return

what does "cat ~/.xinitrc" return

As Jaglover says anything in ~/.xsessions-errors

and do you have a config file for i3? Something to tell it to start a program, like xterm, etc.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
moevot
n00b
n00b


Joined: 15 Mar 2019
Posts: 23

PostPosted: Tue Apr 02, 2019 7:35 pm    Post subject: Reply with quote

~/.xsessions-errors
Code:

The XKEYBOARD keymap compiler (xkbcomp) reports:
>Warning:    Unsupported high keycode 372 for name <I372> ignored
>            X11 cannot support keycodes above 255.
>            This warning only shows for the first high keycode.
Errors from xkbcomp are not fatal to the Xserver
/etc/X11/xinit/xinitrc: line 60: twm: command not found
/etc/X11/xinit/xinitrc: line 64: exec: xterm: not found
/etc/X11/xinit/xinitrc: line 62: xterm : command not found
xinit: connection to X server lost


Last edited by moevot on Tue Apr 02, 2019 7:45 pm; edited 1 time in total
Back to top
View user's profile Send private message
moevot
n00b
n00b


Joined: 15 Mar 2019
Posts: 23

PostPosted: Tue Apr 02, 2019 7:38 pm    Post subject: Reply with quote

ls -l ~/.xinitrc
Code:
-rw-r--r-- 1 root root 17 Apr  2 12:23 .xinitrc


cat ~/.xinitrc
Code:
exec i3


where would I find the config file for i3?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Tue Apr 02, 2019 8:12 pm    Post subject: Reply with quote

Ownership root:root is a showstopper. Don't mess as root in your home directory.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
moevot
n00b
n00b


Joined: 15 Mar 2019
Posts: 23

PostPosted: Tue Apr 02, 2019 8:25 pm    Post subject: Reply with quote

WOOOOOOOW. I rm the root created file and exited su. made a new .xinitrc and it freaking worked. Thank you so much.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum