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

"No battery" in status bar

asked 2015-08-24 11:29:22 +0000

constantine gravatar image

updated 2015-08-24 11:30:00 +0000

I receive a "No battery" in my status bar, while I suppose I shouldn't. What am I doing wrong?

The i3status.conf includes:

order += "battery 1"
battery 1 {
    format = "%status %percentage %remaining"
    path = "/sys/class/power_supply/BAT1/uevent"
 }

and my /sys/class/power_supply/BAT1/uevent is:

POWER_SUPPLY_NAME=BAT1
POWER_SUPPLY_STATUS=Unknown
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_CYCLE_COUNT=0
POWER_SUPPLY_VOLTAGE_MIN_DESIGN=14800000
POWER_SUPPLY_VOLTAGE_NOW=14800000
POWER_SUPPLY_CURRENT_NOW=0
POWER_SUPPLY_CHARGE_FULL_DESIGN=4400000
POWER_SUPPLY_CHARGE_FULL=4400000
POWER_SUPPLY_CHARGE_NOW=4400000
POWER_SUPPLY_CAPACITY=100
POWER_SUPPLY_CAPACITY_LEVEL=Normal
POWER_SUPPLY_MODEL_NAME=<censored>
POWER_SUPPLY_MANUFACTURER=<censored>
POWER_SUPPLY_SERIAL_NUMBER=3658Q

I tried with "battery 0", too.

PS: This is related to https://faq.i3wm.org/question/1071/ba... and https://faq.i3wm.org/question/4625/i3...

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-08-24 12:10:46 +0000

constantine gravatar image

updated 2015-08-24 12:12:20 +0000

Facepalm:

I was editing the wrong file: ~/.i3/i3status.conf while I should edit /etc/i3status.conf. I also did not have to set a path = line.

edit flag offensive delete link more

Comments

Actually, you should edit `~/.i3status.conf` (directly in your home directory). But you can also pass the configuration file as command line parameter to `i3status` in the `bar` block of your i3 configuration: `status_command i3status -c ~/.i3/i3status.conf`

Adaephon gravatar imageAdaephon ( 2015-08-24 20:47:42 +0000 )edit

Question Tools

1 follower

Stats

Asked: 2015-08-24 11:29:22 +0000

Seen: 403 times

Last updated: Aug 24