The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

"There is an error in your config file"

asked 2015-07-12 18:33:48 +0000

mechpro gravatar image

updated 2015-07-13 08:17:53 +0000

Adaephon gravatar image

Hello all,

I logged in to my Ubuntu 14.04 machine i3 today after having added the following lines to my i3 config file.

last_full_capacity = true 
hide_seconds = true
integer_battery_capacity = true
low_threshold:10
threshold_type:time

However, I noticed the following message after logging in:

ERROR: CONFIG: Line 125: #Battery - Show true last full charge percentage - not factuory full charge
ERROR: CONFIG: Line 126: last_full_capacity = true
ERROR: CONFIG: Line 127: hide_seconds = true
ERROR: CONFIG:           ^^^^^^^^^^^^^^^^^^^
ERROR: CONFIG: Line 128: integer_battery_capacity = true
ERROR: CONFIG: Line 129: low_threshold:10
ERROR: CONFIG: Expected one of these tokens: <end>, '#', 'set', 'bindsym', 'bindcode', 'bind', 'bar', 'font', 'mode', 'floating_minimum_size', 'floating_maximum_size', 'floating_modifier', 'default_orientation', 'workspace_layout', 'new_window', 'new_float', 'hide_edge_borders', 'for_window', 'assign', 'focus_follows_mouse', 'mouse_warping', 'force_focus_wrapping', 'force_xinerama', 'force-xinerama', 'workspace_auto_back_and_forth', 'fake_outputs', 'fake-outputs', 'force_display_urgency_hint', 'workspace', 'ipc_socket', 'ipc-socket', 'restart_state', 'popup_during_fullscreen', 'exec_always', 'exec', 'client.background', 'client.focused_inactive', 'client.focused', 'client.unfocused', 'client.urgent', 'client.placeholder'

Did I not enter the the lines properly?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-07-12 22:06:37 +0000

oberon gravatar image

updated 2015-07-12 22:09:15 +0000

All those settings are supposed to be in the config file for the i3status bar, typically ~/.i3status.conf, and NOT in your i3 config file! Please read here: http://i3wm.org/i3status/manpage.html

edit flag offensive delete link more
0

answered 2015-07-13 04:27:59 +0000

mechpro gravatar image

Thanks - I feel a bit slow for not checking that. Another follow up question. The documentation states that my i3 status config should be located here:

~/.i3status.conf

~/.config/i3status/config (or $XDG_CONFIG_HOME/i3status/config if set)

/etc/i3status.conf

/etc/xdg/i3status/config (or $XDG_CONFIG_DIRS/i3status/config if set)

However, the only one I found was in /etc/i3.status.config and when I tried to edit it, it was only read only

edit flag offensive delete link more

Comments

The one in /etc/ is just the default config. Just do a "cp /etc/i3status.conf ~/.i3status.conf" to create it in the correct place and edit it there.

Airblader gravatar imageAirblader ( 2015-07-13 07:11:38 +0000 )edit

Please, do to post questions as answers to other questions. If you want to add some information you can edit the question. If it is (like here) an entirely different issue, please post it as new question.

Adaephon gravatar imageAdaephon ( 2015-07-13 08:22:56 +0000 )edit

My apologies, thank you

mechpro gravatar imagemechpro ( 2015-07-13 18:42:23 +0000 )edit

Question Tools

1 follower

Stats

Asked: 2015-07-12 18:33:48 +0000

Seen: 149 times

Last updated: Jul 13