i3 / i3/i3status

add support for ac power supply

Open
#180 5 comments 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
C
Stars
653
Forks
254
PR merge metrics
No merged PRs in 30d

Description

It would be really useful for me to see if the AC power supply is plugged and working. What do you think about adding support for it?

My `/sys/class/power_supply/AC/uevent`:
```
POWER_SUPPLY_NAME=AC
POWER_SUPPLY_ONLINE=1
```

Contributor guide

Open the contributing guide

Research direction

Start by tracing how existing power-supply data is discovered and displayed, using /sys/class/power_supply/AC/uevent as the reported Linux entry point. Add support for the POWER_SUPPLY_ONLINE value and verify that the status bar reflects whether AC power is connected and working.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux
Domain
operating-systems
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.