about summary refs log tree commit diff
path: root/modules/workstation/windowing/sway/status.cpp
Commit message (Collapse)AuthorAge
* modules/sway: consider all batteriesAlyssa Ross2023-10-01
| | | | | Not all battery names start with "BAT", but so far I haven't seen any non-battery power supplies that contain the required files.
* modules/sway: handle ENODEV in battery statusAlyssa Ross2021-06-24
|
* modules/sway: show bat charge if no capacity dataAlyssa Ross2020-07-03
| | | | | | | I plugged a battery in and had no capacity data, which at the time meant even the status (which was available) wouldn't be shown. Now, status and capacity will be shown independently of each other, and if capacity information is unavailable, charge will be shown instead.
* modules/sway: improve status variable nameAlyssa Ross2020-07-03
|
* modules/sway: add missing breaksAlyssa Ross2020-04-17
| | | | | Missing these resulted in an extra space being displayed after the arrows.
* modules/sway: rewrite status_command in C++Alyssa Ross2020-04-17
The execline version was nice, but I think execline is not really suitable for fairly complicated scripts that run once a second. I frequently saw it as one of the most active processes on the system, and it was probably really bad for power consumption! Before rewriting in C++, I tried C, but the string handling was extremely annoying, and Rust, but it can't do time stuff in the standard library. I didn't want to have to pull in a library just for this, so C++ it was. My first C++ program, in fact!