Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] i3status config mystery
View unanswered posts
View posts from last 24 hours

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


Joined: 01 Mar 2015
Posts: 6

PostPosted: Mon Nov 21, 2016 3:28 am    Post subject: [SOLVED] i3status config mystery Reply with quote

I switched to i3 about a year ago, and haven't really looked at my configuration since.

Today, I needed to change something in my status bar and... couldn't find the config file for i3status! To be more specific, the only i3status.conf file anywhere on my system is the default one in /etc, while my current status bar is the one I set up a year ago, i.e. not the default. My i3 config file calls i3status the default way, i.e.
Code:
bar {
    status_command i3status
}

so a non-standard config file location should not be the issue.

Does anyone have any idea where my configuration went, and how my system is still able to use it?


Last edited by phvr on Mon Nov 21, 2016 10:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
saboya
Guru
Guru


Joined: 28 Nov 2006
Posts: 434
Location: Brazil

PostPosted: Mon Nov 21, 2016 4:07 am    Post subject: Reply with quote

In your home folder perhaps?
Back to top
View user's profile Send private message
phvr
n00b
n00b


Joined: 01 Mar 2015
Posts: 6

PostPosted: Mon Nov 21, 2016 4:13 am    Post subject: Reply with quote

Like I said, the only config file I could find is the one in /etc, and its contents do not correspond to my current configuration. I have checked all locations I could think of, including the ones described in https://i3wm.org/i3status/manpage.html. (And to be safe: yes, I do know about hidden files and ls -a)
Back to top
View user's profile Send private message
snkmoorthy
Guru
Guru


Joined: 19 Nov 2002
Posts: 376

PostPosted: Mon Nov 21, 2016 5:36 am    Post subject: Reply with quote

i3status man pages lists these;
Quote:

1. ~/.i3status.conf

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

3. /etc/i3status.conf

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


if none are available create one with;
Quote:
# i3status configuration file.
# see "man i3status" for documentation.

# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!

general {
colors = true
interval = 5
}

order += "ipv6"
order += "disk /"
order += "run_watch VPN"
order += "wireless wlan0"
order += "ethernet eth0"
order += "battery 1"
order += "load"
order += "tztime local"

wireless wlan0 {
format_up = "W: (%quality at %essid) %ip"
format_down = "W: down"
}

ethernet eth0 {
# if you use %speed, i3status requires root privileges
format_up = "E: %ip (%speed)"
format_down = "E: down"
}

battery 1 {
format = "%status %percentage %remaining"
}

run_watch DHCP {
pidfile = "/var/run/dhclient*.pid"
}

run_watch VPN {
pidfile = "/var/run/vpnc/pid"
}

tztime local {
format = "%Y-%m-%d %H:%M:%S"
}

load {
format = "%1min"
}

disk "/" {
format = "%avail"
}
Back to top
View user's profile Send private message
phvr
n00b
n00b


Joined: 01 Mar 2015
Posts: 6

PostPosted: Mon Nov 21, 2016 11:54 am    Post subject: Reply with quote

Thank you, I am aware of the documentation, and if need be I will (re)create my configuration. The mystery is that no non-default configuration file is present while the status bar I am currently looking at is not the default one, but a custom one I configured a year ago that I cannot it this time locate. In other words, it appears i3status is reading a file that isn't there.
Back to top
View user's profile Send private message
Zucca
Veteran
Veteran


Joined: 14 Jun 2007
Posts: 1463
Location: KUUSANKOSKI, Finland

PostPosted: Mon Nov 21, 2016 1:19 pm    Post subject: Reply with quote

phvr wrote:
In other words, it appears i3status is reading a file that isn't there.
Strange...
Maybe it reads the file from some undocumented (deprecated) location. Have you tried to search for it, like running find "${HOME}/" /etc -name '*i3status*'?
_________________
..: Zucca :..

Code:
ERROR: '--failure' is not an option. Aborting...
Back to top
View user's profile Send private message
phvr
n00b
n00b


Joined: 01 Mar 2015
Posts: 6

PostPosted: Mon Nov 21, 2016 2:00 pm    Post subject: Reply with quote

I did, and the only result is the default in /etc.

When I get a chance I will try a reboot, see if the file went missing after the last time it was loaded maybe... I'll report back.
Back to top
View user's profile Send private message
phvr
n00b
n00b


Joined: 01 Mar 2015
Posts: 6

PostPosted: Mon Nov 21, 2016 10:05 pm    Post subject: Reply with quote

OK, so I rebooted (or actually, restarted i3), and the status bar switched back to the default. So I probably did something stupid and removed my config file in the recent past, no idea what it was but I'll dig through my backups and see if I can get the file back and figure out what i did wrong.

Meanwhile, the mystery is solved. Thanks for the help!
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