Select Git revision
batteryd.conf.example
Zámolyi Csaba Ferenc authored
batteryd.conf.example 1.68 KiB
# Example batteryd.conf file
#
# Copyright (c) 2023, Csaba Zámolyi
# LICENSE: GNU GPL v3.0
#
#
# There are three available battery levels: HALF, LOW, CRITICAL and their percentage value can be configured
# The values must be between 0 and 100 (although using 0 would not make much sense)
# The following has to be true for a valid configuration:
# TRESHOLD_HALF > TRESHOLD_LOW > TRESHOLD_CRITICAL
#
# The actions can be as follows:
# - "ignore": it does not do any action, and skips all other actions supplied for the given battery level.
# If no action is supplied for a level, batteryd will default to "ignore"
# - "notify": sends a notification to the user and informs them about the battery percentage via notify-send
# - "sleep": suspends system to RAM after a configured amount of time. (WAIT_TIME_SLEEP)
# - "shutdown": gracefully shuts down the system after a configured amount of time. (WAIT_TIME_SHUTDOWN)
# 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!)
TRESHOLD_HALF=50
# Action to do at HALF battery
ACTION_HALF="notify"
# LOW battery percentage treshold (0-100)
TRESHOLD_LOW=30
# Action to do at LOW battery
ACTION_LOW="notify"
# CRITICAL battery percentage treshold (0-100)
TRESHOLD_CRITICAL=15
ACTION_CRITICAL="notify,sleep"
# Waiting times for actions (in seconds, maximum of 300)
# Waiting time for "sleep" action
WAIT_TIME_SLEEP=30
# Waiting time for "shutdown" action
WAIT_TIME_SHUTDOWN=60