gerschtli / dwm-status Goto Github PK
View Code? Open in Web Editor NEWHighly performant and configurable DWM status service
License: MIT License
Highly performant and configurable DWM status service
License: MIT License
Hello,
When I run cargo run -- <config-file>
I get the following output before the program stop:
06:22:04 [ WARN] Config option 'debug' is deprecated and will be removed in 2.0.0. Log level is set to info by default.
06:22:04 [ INFO] Update all features
06:22:04 [ERROR] Error in process: reading process output failed (Os { code: 2, kind: NotFound, message: "No such file or directory" })
The first time I started it I had an additional error line saying dbus error
Thanks for help
Enabling battery feature in config file makes program crash with the following message:
15:50:14 [ERROR] Error in battery: no ac name (AC or ACAD) matched in /sys/class/power_supply
$ ls /sys/class/power_supply
ADP1 BAT0
upower is installed and the daemon enabled and running through systemctl
On my system, dwm-status emit a notification every time my first battery go below 25% while the other one is still fully charged.
I will investigate this issue.
In my config file I enabled the battery feature. Yet it doesn't report any battery data, it just display NO BATT
as defined in the config file in case of no battery found.
When dwm-status
is running I get the following error because of the battery feature:
Error in dbus: failed to send message (D-Bus error: The name org.freedesktop.UPower was not provided by any .service files (org.freedesktop.DBus.Error.ServiceUnknown))
On my system the acpi
command returns the following:
Battery 0: Charging, 18%, 00:36:43 until charged
Battery 1: Unknown, 4%
I'm running arch linux on a lenovo thinkpad T400.
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.
Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.
.On my machine sometimes the capacity for my battery is buggy and shows a really low percentage such as the following:
Charge Now: 45260000
Charge Full: 59920000
Capacity (as calculated in BatteryDevice.capacity()): 3
The real capacity should be about 75
I obtained these numbers by inserting a println! in the capacity method of the battery device implementation. I think this happens because the code is trying to do the multiplication and division with integers. I could be wrong, but I think floats may be needed here.
In my own copy of the repo I was able to make this work by doing the capacity calculation using floats and converting back to a u32 in the return statement.
I can send a PR if you think the change makes sense.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
serde
, serde_derive
)Cargo.toml
battery 0.7.8
chrono 0.4.38
inotify 0.10.2
libnotify 1.0.3
log 0.4.21
serde 1.0.200
serde_derive 1.0.200
simplelog 0.12.2
glob 0.3.1
ctrlc 3.4.4
mocktopus 0.8.0
x11 2.21.0
hamcrest2 0.3.0
.github/workflows/ci.yml
actions/checkout v4
hecrj/setup-rust-action v1
actions/cache v4
actions/cache v4
actions/cache v4
actions/checkout v4
cachix/install-nix-action v27
cachix/cachix-action v15
Hi!
Ran into this project and it was exactly what I was looking for in a status bar (without having to write my own). Really awesome stuff.
Any chance of getting a PKGBUILD up and posted onto the AUR for Arch Linux?
Adding a feature that allows people to see how much ram the have left would be a good addition I think.
This is totally not your fault, it is more a question on my side. The Control "Master" doesn't show my actual volume. And none of "amixer get <PCM/Speaker/etc> outputs show my actual volume. Is there anyway you could help me? I've spent hours trying to figure it out with the original dwmstatus and wanted to try yours now.
Best regards, Joel
When my battery become low (around 21%) dwm-status stop to update the bar and more, seems to just completly crash. No message is printed in the log file. When tihs happen I simply restart the program using the following command: dwm-status ~/config/dwm-status/examples/default-settings/defaults.json &
. Here is my config file:
{
"debug": false,
"order": ["network", "audio", "backlight", "battery", "time"],
"separator": " / ",
"audio": {
"control": "Master",
"mute": "ﱝ MUTE",
"template": "{ICO} {VOL}%",
"icons": ["奄", "奔", "墳"]
},
"backlight": {
"device": "intel_backlight",
"template": "{ICO} {BL}%",
"icons": ["", "", ""]
},
"battery": {
"charging": "",
"discharging": "",
"enable_notifier": true,
"no_battery": "",
"notifier_critical": 10,
"notifier_levels": [
2,
5,
10,
15,
20
],
"separator": " · ",
"icons": ["", "", "", "", "", "", "", "", "", "", ""]
},
"cpu_load": {
"template": "{CL1} {CL5} {CL15}",
"update_interval": 20
},
"network": {
"no_value": "NA",
"template": " {ESSID}"
},
"time": {
"format": "%Y-%m-%d %H:%M",
"update_seconds": false
}
}
I'm using archlinux + dwm. I think that maybe some powersaving feature kill dwm-status to preserve battery but it's pure supposition.
Any ideas how to fix the issue?
Have you considered using the XStoreName instead of spawning a subprocess?
I find it kind of strange that you do all the heavy lifiting in rust and then spawn a subprocess for that function call.
hi,
i tried to run dwm-status with one of the example files dwm-status examples/default-settings/defaults.toml
, and i get this error:
23:10:21 [WARN] Config option 'debug' is deprecated and will be removed in 2.0.0. Log level is set to info by default.
23:10:21 [ERROR] Error in settings: no features enabled
how to enable features? and shouldn't the example be working? am i missing something?
thanks
Hello,
Since I updated to master from and older version, dwm-status now only report one of my two batteries.
The result of acpi
is the following:
Battery 0: Discharging, 83%, 02:37:07 remaining
Battery 1: Unknown, 78%
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.