You are not logged in.

#1 2017-08-08 20:53:32

teytur
Member
Registered: 2017-08-06
Posts: 6

Error after editing i3 config

http://i.imgur.com/EwPOQsW.png

I was following this youtube tutorial on configuring i3 and all I'm doing is binding "lock i3" to mod+shift+x and setting a wallpaper so that it stays even after I logout and back in again. When I log in though I get this error code in the screenshot above. I tried editing the config in both vim and nano and got the same result. Any ideas?

Offline

#2 2017-08-08 20:56:18

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,808

Re: Error after editing i3 config

Don't follow youtube videos.  They are usually wrong.

The error is pretty clear.  the filename, on line 159, should be on the same line as feh, line 158.

Edit:  Actually, i think all three lines should be on the same line.  I don't now the syntax for i3lock

Last edited by ewaller (2017-08-08 20:58:28)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2017-08-08 21:20:38

teytur
Member
Registered: 2017-08-06
Posts: 6

Re: Error after editing i3 config

http://i.imgur.com/BVgMPqw.png

I don't get it. They are on the same line. The formatting is just smushed because the windows are narrow. Here, I took better screenshot.

ps wth is up with the letter spacing in my terminal. it overlaps and then other times there is way too much space. that issue is not the narrow windows but persists no matter what.

Offline

#4 2017-08-08 21:21:44

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

Re: Error after editing i3 config

Don't post screenshots of text, paste the actual text (in code tags).


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2017-08-08 21:29:43

teytur
Member
Registered: 2017-08-06
Posts: 6

Re: Error after editing i3 config

jasonwryan wrote:

Don't post screenshots of text, paste the actual text (in code tags).

Believe me, I've tried. I'm running arch in a VM on a mac and I swear to god there is just no way to copy text from there nor paste text into it.

Offline

#6 2017-08-08 21:31:24

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

Re: Error after editing i3 config

teytur wrote:
jasonwryan wrote:

Don't post screenshots of text, paste the actual text (in code tags).

Believe me, I've tried. I'm running arch in a VM on a mac and I swear to god there is just no way to copy text from there nor paste text into it.

https://wiki.archlinux.org/index.php/Li … in_clients


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2017-08-08 23:51:04

okubax
Member
From: Kent, UK.
Registered: 2010-04-24
Posts: 210
Website

Re: Error after editing i3 config

Something is wrong with the sytax in your config file, did you manually copy the config or use the i3-config-wizard itool?. Your i3lock syntax is fine (it should just show a white screen since you did not specify a background and/or image) Your best bet is to delete that config file and re-run the tool to start afresh.

Last edited by okubax (2017-08-08 23:51:26)

Offline

#8 2017-08-09 03:01:19

onslow77
Member
Registered: 2014-09-21
Posts: 279

Re: Error after editing i3 config

Hello teytur!

According to "i3lock" manual: You have to use a ".png" file! Furthermore You have to use the "i" option in order to specify the image path.

I use the below in my i3 config:

# Bacground image using the external program: [feh]
exec --no-startup-id feh --bg-scale 2560x1440 ~/Pictures/bear_background.jpg

# lock the screen
bindsym $mod+l exec --no-startup-id i3lock -i ~/Pictures/lock_screen.png -t & sleep 100 && xset dpms force off

Regards
Martin

Last edited by onslow77 (2017-08-09 03:15:50)


It is advised to follow the How to post guide when posting on the Arch forum. If one consciously jumps over these elementary steps like reading the wiki and providing necessary information about the problem, one can be regarded as a Help Vampire.

Offline

#9 2017-08-09 04:56:44

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,433

Re: Error after editing i3 config

Error clearly says that line 158 is "exec_always...--bg-scale", while line 159 is "/home/....jpg", they both clearly should be on the same line. As you can see that Line 159 is underlined in the error text, means it is the line with actual error.

Offline

#10 2017-08-09 08:40:59

okubax
Member
From: Kent, UK.
Registered: 2010-04-24
Posts: 210
Website

Re: Error after editing i3 config

onslow77 wrote:

Hello teytur!

According to "i3lock" manual: You have to use a ".png" file! Furthermore You have to use the "i" option in order to specify the image path.

I use the below in my i3 config:

# Bacground image using the external program: [feh]
exec --no-startup-id feh --bg-scale 2560x1440 ~/Pictures/bear_background.jpg

# lock the screen
bindsym $mod+l exec --no-startup-id i3lock -i ~/Pictures/lock_screen.png -t & sleep 100 && xset dpms force off

Regards
Martin

As you can see, the fellow isn't specifying any image for i3lock, which would still work (albeit a blank white screen).

Offline

#11 2017-08-09 10:47:04

teytur
Member
Registered: 2017-08-06
Posts: 6

Re: Error after editing i3 config

Now I really done fucked up. To be clear I'm not trying to have a wallpaper on the i3lock screen. Just trying to set a basic desktop wallpaper that doesn't disappear after logging out. Anyway so I tried moving the edits to the same line and now at least I don't get an error when I refresh i3 but when I try to lock I get the loading wheel and then nothing happens. The wallpaper didn't stay and now my terminal launch binding doesn't work either. I think I've foobar'd this system I might just try deleting the config wizard it back. Thanks for the tho guys!

Offline

#12 2017-08-09 11:22:06

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

Re: Error after editing i3 config

try deleting the config wizard it back

Do you hope to advance by not understanding the problem, but repeat your previous mistakes?

Please either post the actual text of that file or at least use a monospace console font.
Otherwise it's even hard to guess what actually the contents of the file are.

The reason that copy and paste doesn't work is btw. likely that copy and paste in VTEs usually doesn't support the windows shortcuts (since notably ctrl+c has a rather special meaning in the context of a CLI)
Maybe use a GUI editor.

Offline

#13 2017-08-09 13:53:24

onslow77
Member
Registered: 2014-09-21
Posts: 279

Re: Error after editing i3 config

okubax wrote:

As you can see, the fellow isn't specifying any image for i3lock, which would still work (albeit a blank white screen).

No I cant see because both the config and the error are shown in an image.

teytur wrote:

...To be clear I'm not trying to have a wallpaper on the i3lock screen. Just trying to set a basic desktop wallpaper that doesn't disappear after logging out...

tetytur - As @seth and @jasonwryan allready stated, please post the actual config and the error in "code tags" to avoid misunderstandings. That said, you should configure "Feh and i3lock" on there own line in your i3 config file. For example:

# Persistant wallpapper with feh 
exec --no-startup-id feh --bg-scale <your_resolution> <path_to_image>

# lock the screen with i3lock
bindsym $mod+l exec --no-startup-id i3lock <your_options> 

Consult the i3lock manual for possible options.

Regards
Martin

Last edited by onslow77 (2017-08-09 14:01:16)


It is advised to follow the How to post guide when posting on the Arch forum. If one consciously jumps over these elementary steps like reading the wiki and providing necessary information about the problem, one can be regarded as a Help Vampire.

Offline

Board footer

Powered by FluxBB