Urja (ऊर्जा) is Sanskrit for "energy": the energy your laptop runs on.
urja is the battery at a glance for Vyom: one keyboard-driven panel that opens instantly, with live data, a preview and a key for everything. It runs on any compositor with the layer-shell protocol (sway, Hyprland, river, niri, Wayfire, labwc…). In Vayu, the desktop it was built for, it replaces battery-limit-picker.py.
#Features
- Time to full or time left as the headline, next to a big charge ring (green, yellow when low, red when nearly empty, with the state in words).
- The power draw in watts. Batteries that don't report a current (some HP firmware) get an estimate from how fast the charge moved over the last half hour, marked "about".
- A charge graph of the last 3 hours: UPower's own history (read over D-Bus, no root needed), filled in with samples urja takes itself while Vyom runs.
- Health as a bar with a word: green good (80%+), yellow worn, red replace (under 60%), with what it means in plain words, the cycle count and the battery's make.
- The power profile (power-profiles-daemon) as a segmented control with the current one filled; a click or
pswitches it. - Vim keys (Vyom 0.7):
j/k/h/lmove between and along the controls,Spaceis the leader,?lists every key. - With
limit_fileset, a charge-limit reminder slider with its value in peach: the percentage a watcher of yours nudges you to unplug at. vyom urja demoshows made-up numbers (for screenshots, or to try it on a desktop).- Works with both kinds of battery driver (energy_* / power_now, or charge_* / current_now).
- Keyboard first: every action has a key, shown in the footer; the mouse works too.
#Install
#Requirements
- Vyom 0.6.0 or newer (Python 3.11+, PyGObject, GTK 4, gtk4-layer-shell, a Nerd Font)
- optional: powerprofilesctl (power profile)
#Install
git clone https://github.com/Theyashsawarkar/urja ~/.local/share/vyom/plugins/urja
vyom reload # pick it up (or log out and in)
vyom urja # open it; run it again to close
Give it a key in your compositor, e.g. sway:
bindsym $mod+<key> exec vyom urja
#Update and uninstall
git -C ~/.local/share/vyom/plugins/urja pull && vyom reload # update
rm -rf ~/.local/share/vyom/plugins/urja && vyom reload # uninstall
#Usage
Open it with vyom urja (or your key; vyom urja demo shows made-up numbers). It's always in NORMAL mode (there's nothing to type): j / k move between the power profiles and the reminder slider, h / l move along the profiles or the slider (a count first: 3l), Enter picks the focused profile, p switches to the next profile and 0 turns the reminder off. Space is the leader (Space ? lists every key); it never presses a control.
Vyom's vim keys work too: ? and Space ? list every key, Space Space is the palette, q closes, Esc steps back, Space u f is fullscreen, Space r refreshes; on a card j / k move between controls, h / l change the focused one and Enter presses it.
Keys (it's always in NORMAL mode: there's nothing to type)
| Key | Action |
|---|---|
p | Switch to the next power profile |
0 | Turn the charge-limit reminder off |
Leader (Space)
| Key | Action |
|---|---|
Space y y | Copy a battery summary (87%, charging, 2 h left) |
Space o t | Open the battery's details (upower -i) in a terminal |
#Configuration
Everything is optional, in ~/.config/vyom/config.toml under [plugin.urja]:
| Setting | Default | What it does |
|---|---|---|
limit_file | (unset: no slider) | File holding the reminder percentage (Vayu: ~/.local/state/battery-limit/threshold) |
Run vyom reload after editing.
#Troubleshooting
- Nothing opens.
vyom listshows every installed tool, and why one is skipped (a missing requirement, or a Vyom that's too old). - It opened, then something failed. Look for a
Tracebackin the daemon's log,journalctl --user -u vyom -u vyom-daemon -b(without systemd:~/.local/state/vyom/daemon.log), and open an issue with it. - No blur or rounded corners. That's the compositor: on SwayFX, add
layer_effects "vyom" { blur enable; corner_radius 20; shadows enable }.
#The Vyom family
Each tool is its own repository, so you install only the ones you want:
| Tool | What it does | |
|---|---|---|
| dvara | द्वार, gateway | The app launcher |
| ganit | गणित, mathematics | The calculator and converter |
| smriti | स्मृति, memory | Clipboard history |
| bhava | भाव, feeling, emotion | The emoji picker |
| tarang | तरंग, wave | Wi‑Fi and the hotspot |
| setu | सेतु, bridge | Bluetooth |
| doot | दूत, messenger | Your phone, through KDE Connect |
| patra | पात्र, vessel | Docker containers |
| akashvani | आकाशवाणी, voice from the sky | Notifications |
| raga | राग, melody | YouTube music and video |
| mudra | मुद्रा, gesture | Keybinding search |
| urja (this one) | ऊर्जा, energy | The battery at a glance |
| vishram | विश्राम, rest | The power menu |
| kendra | केन्द्र, centre | Quick settings |
#Contributing
Bug reports, ideas and pull requests are welcome: see CONTRIBUTING.md for the development setup and the few rules every tool follows, and CHANGELOG.md for what changed in each release. Please report security issues privately (SECURITY.md).
#License
MIT.