Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sug0/ds4batlevel
Monitor the battery level of a Dual Shock 4 controller
https://github.com/sug0/ds4batlevel
c daemon ds4 dualshock4 libnotify linux monitor
Last synced: 2 days ago
JSON representation
Monitor the battery level of a Dual Shock 4 controller
- Host: GitHub
- URL: https://github.com/sug0/ds4batlevel
- Owner: sug0
- License: 0bsd
- Created: 2022-04-10T15:22:25.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-07-25T15:08:14.000Z (over 1 year ago)
- Last Synced: 2024-11-02T09:04:41.855Z (about 2 months ago)
- Topics: c, daemon, ds4, dualshock4, libnotify, linux, monitor
- Language: C
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: COPYING
Awesome Lists containing this project
README
ds4batlevel
===========A very simple program to monitor the battery level of a Dual Shock 4
controller in Linux systems.compiling
---------$ cc -O1 -o ds4batlevel ds4batlevel.c `pkgconf --libs --cflags libnotify`
configuring
-----------Look for the Dual Shock 4 controller in `/sys/class/power_supply`, then
append `capacity` to the path.For instance:
/sys/class/power_supply/sony_controller_battery_1c:66:6d:d0:1e:b9/capacity
Then copy `config.def.h` into `config.h` and edit the path appropriately.