ventto / batify Goto Github PK
View Code? Open in Web Editor NEWOnly one udevrule file triggering plug and critical battery level notifications (multi-x sessions support)
Only one udevrule file triggering plug and critical battery level notifications (multi-x sessions support)
Steps i took ->
$ udevadm control --reload-rules
Also rebooted many times. I get notification for Charger plugged in
and Charger disconnected
but no other notification for low battery.
System ->
OS : Arch Linux x86_64
Kernel : 6.4.12-arch1-1
DE : Hyprland
Wayland
Hi Ventto, thank you for this repo because I have used batify on my arch os for a long time. Unfortunately as of recently I see the following messages in my journalctl -p 3 -xb
output. Do you have an idea how I could fix that? Thank you very much!
Nov 21 03:17:24 user systemd-udevd[307]: /etc/udev/rules.d/99-batify.rules:8 Invalid value "/bin/su $env{XUSER} -c '/usr/bin/notify-send -a batify -u critical Discharging:$attr{capacity}%'" for RUN (char 95: invalid substitution type), ignoring, but please fix it.
Nov 21 03:17:24 user systemd-udevd[307]: /etc/udev/rules.d/99-batify.rules:15 Invalid value "/bin/su $env{XUSER} -c '/usr/bin/notify-send -a batify -u critical Discharging:$attr{capacity}%'" for RUN (char 95: invalid substitution type), ignoring, but please fix it.
I needed full path to notify-send /usr/bin/notify-send
for it to work.
Thanks for making this btw, exactly what I needed :)
Hi,
I installed off of AUR, and unfortunately I don't get notifications. I see in journalctl for example:
/etc/udev/rules.d/99-batify.rules:13 Invalid value "/bin/su $env{XUSER} -c 'notify-send -u normal Discharging:$attr{capacity}%'" for RUN (char 74: invalid substitution type), ignoring, but please fix it.
Any ideas what would cause this?
Thanks!
I was just asking when a new release is being made. The AUR package batify
for example uses the last release, which means, that notification icons and the better texts are not in there.
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.