-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsleep-inhibitor.conf
96 lines (88 loc) · 4.03 KB
/
sleep-inhibitor.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# Configuration file for sleep-inhibitor program. Copy this to
# /etc/sleep-inhibitor.conf and edit as you want.
#
# Normally the plugin dir (for provided plugins) is automatically
# determined (e.g. at either /usr/share/sleep-inhibitor/plugins or
# /usr/local/share/sleep-inhibitor/plugins) but you can define it
# explicitly here if you want, e.g. for custom config file for testing.
#
# Note period values in this file are specified in minutes by default.
# E.g. "2" is 2 minutes. However, you can append an "s", "m", or "h" to
# specify in seconds, minutes, or hours, e.g. "2s" is 2 seconds, "2m" is
# 2 minutes (i.e. same as "2"), or "2h" is 2 hours.
#
# plugin_dir:
#
# Default global check period in minutes. Can be specified for each
# plugin, or if not specified will be the global default you define
# here, or is 5 mins if not specified at all.
#
# period: 5
#
# Default global check period, while ON/INHIBITING, in minutes. Can be
# specified for each plugin, or if not specified will be the global
# default you define here, or is "period" above if not specified at all.
# Will be limited to "period" value so can not be larger.
#
# period_on:
#
# Default global "what" value. Can be specified for each plugin, or if
# not specified will the global default you define here. Takes a
# colon-separated list of one or more operations to inhibit. See the
# description of the --what option in the man page for systemd-inhibit.
# Defaults to the default value of that systemd-inhibit option.
#
# what:
#
# Plugins are defined following. You can define as many plugins as you
# require. Custom plugins are specified with an absolute path to your
# own executable file. Standard plugins (i.e. those included in the
# distribution plugins/ dir) are specified with no path.
#
# Arguments are specified as below:
# path: Must be specified. Can be an absolute path for custom
# plugins, or relative to the program distribution plugins/
# directory for standard plugins.
# args: Optional. Provides arguments to the above script if required.
# period: Optional. Specifies period to check in minutes. Defaults to
# global value, see above.
# period_on: Optional. Specifies period to check (while ON/INHIBITING)
# in minutes. Defaults to above "period" value, then global value.
# name: Optional. Descriptive name for logging. Defaults to basename of
# path.
# what: Optional. Takes a colon-separated list of one or more
# operations to inhibit. Defaults to global value, see above.
# Comment/delete out or edit the following examples, or add your own.
plugins:
# Inhibit sleep if any audio is playing
- path: is-alsa-playing
name: Audio Playing
# Inhibit sleep when Plex media server is serving content to users.
# You need to specify your Plex token as the argument here. To
# determine your plex token, see
# https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/
# To wake your PC if previously suspended, use any "wake on LAN" app
# on your phone.
# - path: plex-media-server
# name: Plex Media Server
# args: <your-plex-token>
# Inhibit sleep when Jellyfin media server is serving content to users.
# You need to specify your Plex token as the argument here. To
# determine your plex token, see
# https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/
# To wake your PC if previously suspended, use any "wake on LAN" app
# on your phone.
# - path: jellyfin-server
# name: Jellyfin Media Server
# args: <your-jellyfin-token>
# Inhibit sleep if a process is running. Here I
# suppress suspend if my home backup script is running.
# - path: is-process-running
# name: Home Backup
# args: backup.sh
# Inhibit sleep if 1 or more remote users are logged in via ssh
# suppress suspend if my home backup script is running.
# - path: ssh-session-open
# Inhibit sleep if apk (Alpine [Linux] Package Keeper) is running
# - path: apk-running
# vim:se sw=2 syn=yaml et ai: