View previous topic :: View next topic |
Author |
Message |
moevot n00b
Joined: 15 Mar 2019 Posts: 23
|
Posted: Tue Apr 02, 2019 6:04 pm Post subject: [SOLVED] getting start x to look at .xinitrc |
|
|
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 |
|
|
moevot n00b
Joined: 15 Mar 2019 Posts: 23
|
Posted: Tue Apr 02, 2019 6:18 pm Post subject: |
|
|
Btw,
If I edit /etc/X11/xinit/xinitrc where I comment out the if statement that make twm and xterm run while adding startx will launch i3 successfully. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30959 Location: here
|
Posted: Tue Apr 02, 2019 6:41 pm Post subject: |
|
|
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 |
|
|
moevot n00b
Joined: 15 Mar 2019 Posts: 23
|
Posted: Tue Apr 02, 2019 6:49 pm Post subject: |
|
|
Ya that's what I thought. So the i3 gentoo wiki just says to add 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 |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30959 Location: here
|
Posted: Tue Apr 02, 2019 7:01 pm Post subject: |
|
|
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 |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
moevot n00b
Joined: 15 Mar 2019 Posts: 23
|
Posted: Tue Apr 02, 2019 7:18 pm Post subject: |
|
|
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 |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6102 Location: Dallas area
|
Posted: Tue Apr 02, 2019 7:28 pm Post subject: |
|
|
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 |
|
|
moevot n00b
Joined: 15 Mar 2019 Posts: 23
|
Posted: Tue Apr 02, 2019 7:35 pm Post subject: |
|
|
~/.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 |
|
|
moevot n00b
Joined: 15 Mar 2019 Posts: 23
|
Posted: Tue Apr 02, 2019 7:38 pm Post subject: |
|
|
ls -l ~/.xinitrc
Code: | -rw-r--r-- 1 root root 17 Apr 2 12:23 .xinitrc
|
cat ~/.xinitrc
where would I find the config file for i3? |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
moevot n00b
Joined: 15 Mar 2019 Posts: 23
|
Posted: Tue Apr 02, 2019 8:25 pm Post subject: |
|
|
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 |
|
|
|