The newest, coolest, fastest and smallest useless daemon for your system!
The newest, coolest, fastest and smallest useless daemon for your system!
My name is Csaba Zámolyi, and my nickname is "Cshee" (pronunciation: /'tʃeː/), hence the main project name: SysCshee (/'sɪstʃeː/). This daemon is part of the SysCshee project, but is compilable and runnable completely separately, it's not tied to other parts of SysCshee.
My name is Csaba Zámolyi, and my nickname is "Cshee" (pronunciation: /'tʃeː/),
hence the main project name: SysCshee (/'sɪstʃeː/).
### Why?
This daemon is part of the SysCshee project, but is compilable and runnable completely separately,
Why not? It was a long and rough day and around 2AM, after 5-6 beers, it seemed to be a good idea to write a daemon for my personal amusement. This is generally intended as a joke, although for me it serves real purpose. I didn't want to use any 3rd party service for monitoring my battery level, because I know exactly what I want and how I want to do it and what configuration options I wish, and the task seemed easy enough to do for myself. This is a small and easly usable software, and it would be really fun if other people used it or did something with it :slight_smile:
it's not tied to other parts of SysCshee.
### What is this?
### What is this?
This daemon does nothing more and nothing less than monitoring your battery level and taking action(s) at set treshold(s)
This daemon does nothing more and nothing less than monitoring your battery level and taking action(s) at set treshold(s)
The tresholds and the actions to take are both configurable in `/etc/syscshee/batteryd.conf`
The tresholds and the actions to take are both configurable in `/etc/syscshee/batteryd.conf`
### Why?
Why not? It was a long and rough day and around 2AM, after 5-6 beers, it seemed to be a good idea to
write a daemon for a task I wanted, but mostly for my personal amusement.
This is generally intended as a joke, although for me it serves real purpose.
I didn't want to use any 3rd party service for monitoring my battery level,
because I know exactly what I want and how I want to do it and what configuration options I wish.
The task seemed easy enough to do for myself. This is a small and easily usable software, and
it would be really fun if other people used it or did something with it :slight_smile:
Also, this is for learning in a fun, but somewhat productive way.
### Configuration
### Configuration
An example of a `batteryd.conf` file
`batteryd` can be configured with a `batteryd.conf` file located at `/etc/syscshee/batteryd.conf`
##### Example configuration
An example of a `batteryd.conf` file:
```
```
# Example batteryd.conf file
# Example batteryd.conf file
# TODO: License
# TODO: License
#
# There are three available battery levels: HALF, LOW, CRITICAL and their percentage value can be configured
# There are three available battery levels: HALF, LOW, CRITICAL and their percentage value can be configured
# The actions can be as follows:
# The actions can be as follows:
# - "notify": sends a notification to the user and informs them about the battery percentage via notify-send
# - "notify": sends a notification to the user and informs them about the battery percentage via notify-send
# - "sleep": suspends system to RAM, waits for a configured amount of time.
# - "sleep": suspends system to RAM, waits for a configured amount of time.
# - "shutdown": gracefully shuts down the system, waits for a configured amount of time.
# - "shutdown": gracefully shuts down the system, waits for a configured amount of time.
# You can assign more actions to a battery level, separated by commas (no trailing comma and whitespace after comma allowed)
# The daemon will execute the actions in the order they are specified so "shutdown,notify" will not make any sense
# if WAIT_TIME_SHUTDOWN is set to 0
# HALF battery percentage treshold (usually 50%, but who knows!)
# HALF battery percentage treshold (usually 50%, but who knows!)
TRESHOLD_HALF=50
TRESHOLD_HALF=50
...
@@ -44,3 +63,7 @@ WAIT_TIME_SLEEP=30
...
@@ -44,3 +63,7 @@ WAIT_TIME_SLEEP=30
WAIT_TIME_SHUTDOWN=60
WAIT_TIME_SHUTDOWN=60
# TODO: more
# TODO: more
```
### License
This project uses the [GNU General Public License v3.0](COPYING)