You are not logged in.

#1 2021-11-29 19:50:43

RezaHoss
Member
Registered: 2021-11-29
Posts: 38

i3 config not sourcing

I installed Arch and i3. I saved a config for it in ~/.config/i3/config. When I start i3 with "sudo startx" there is no change and its appearance is default. What can be the problem?

Offline

#2 2021-11-29 19:53:37

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: i3 config not sourcing

Needlessly, and recklessly, running X with elevated privileges is the problem.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2021-11-29 19:55:20

RezaHoss
Member
Registered: 2021-11-29
Posts: 38

Re: i3 config not sourcing

jasonwryan wrote:

Needlessly, and recklessly, running X with elevated privileges is the problem.

Can you describe more?

Offline

#4 2021-11-29 20:00:27

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

Re: i3 config not sourcing

Yes. You shouldn't be using sudo.


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

#5 2021-11-29 20:09:27

Erubi
Member
Registered: 2021-06-16
Posts: 40

Re: i3 config not sourcing

Generally, unless you need to, you don't want to run things with sudo. You could either end up messing something up yourself by doing something wrong, or potentially run something malicious that could harm your system.

Offline

#6 2021-11-29 20:32:39

RezaHoss
Member
Registered: 2021-11-29
Posts: 38

Re: i3 config not sourcing

Erubi wrote:

Generally, unless you need to, you don't want to run things with sudo. You could either end up messing something up yourself by doing something wrong, or potentially run something malicious that could harm your system.

Slithery wrote:

Yes. You shouldn't be using sudo.

When I do not use sudo, I get same output (default appearance) too.

Last edited by RezaHoss (2021-11-29 20:32:51)

Offline

#7 2021-11-29 20:36:18

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

Re: i3 config not sourcing

That's probably because you've already used sudo when you shouldn't have.
Check the permissions on all of the files and directories in your ~ to make sure that they are correct.


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

#8 2021-11-29 21:09:35

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,200

Re: i3 config not sourcing

Also please post your xinitrc…

Offline

#9 2021-11-30 10:26:35

RezaHoss
Member
Registered: 2021-11-29
Posts: 38

Re: i3 config not sourcing

Slithery wrote:

That's probably because you've already used sudo when you shouldn't have.
Check the permissions on all of the files and directories in your ~ to make sure that they are correct.

I improved config file's permission with "sudo chmod +x config", but I have the problem agian.

seth wrote:

Also please post your xinitrc…

Where is it?

Offline

#10 2021-11-30 13:16:01

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

Re: i3 config not sourcing

RezaHoss wrote:

I improved config file's permission with "sudo chmod +x config", but I have the problem agian.

No you didn't.  You made it worse.

RezaHoss wrote:
seth wrote:

Also please post your xinitrc…

Where is it?

Are you A) not using archlinux, B) trolling, or C) all of the above?


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

Offline

#11 2021-11-30 14:17:56

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,200

Re: i3 config not sourcing

I improved config file's permission with "sudo chmod +x config"

head->desk()

Trilby wrote:

the obivous

In any event his i3 config doesn't apply because he's running twm…

Offline

#12 2021-11-30 15:45:20

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,690

Re: i3 config not sourcing

Before I close this thread, I'd like to ask; how did you install Arch Linux?  None of the things you are attempting make any sense -- and you most certainly did not get guidance from the official installation guide.  Nor have you taken a clue from not one, not two, but three former/current staff members in addition to one of our most helpful and prolific members.  Add me as the fourth staff member to tell you your doing it wrong.

Stop.  Slow down.   Why do you think making a configuration file that is passed to i3 executable is a good idea?  When you run something using sudo, you take on the persona of root.  This means *any* security issues in highly complex code like i3 and xorg are now exploitable at the root level.  It also makes it likely that files created by the sudo session will be owned by root, and your user won't be able to change them or even remove them. 

You have a couple options.  If you did not install Arch Linux in accordance with the installation guide, start over and do so now.  If not, please take your support questions elsewhere.   If you did, you still may want to consider reinstalling from scratch to ensure things are clean.  Or, remove your user and it directories and recreate the user from scratch.  And, create an xinitrc.  As you don't know where it is, you must not have written one, and as Seth points out, you are using the system default version which attempts to run twm.  Of course, that requires that you have installed xclock and xterm, or it will error out of Xorf and return to the console.

Go to the Arch Wiki and search for terms like xinitrc xorg and i3.

Last edited by ewaller (2021-11-30 15:46:27)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB