aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/config.h
diff options
context:
space:
mode:
authorLibravatar Mattias Eriksson <snaggen@mayam.com>2018-04-17 09:54:02 +0200
committerLibravatar Mattias Eriksson <snaggen@mayam.com>2018-05-13 00:30:09 +0200
commit8fbafbfab5671d56dd469f2205b7906c4a7f7c7c (patch)
treeab4eab0020d97dc5091b72479c383989ccc84729 /include/sway/config.h
parentMerge pull request #1967 from emersion/remove-xdg-popup-unmap (diff)
downloadsway-8fbafbfab5671d56dd469f2205b7906c4a7f7c7c.tar.gz
sway-8fbafbfab5671d56dd469f2205b7906c4a7f7c7c.tar.zst
sway-8fbafbfab5671d56dd469f2205b7906c4a7f7c7c.zip
Idle handling for dpms/lockscreen et al
Swayidle handles idle events and allows for dpms and lockscreen handling. It also handles systemd sleep events, and can raise a lockscreen on sleep Fixes #541
Diffstat (limited to 'include/sway/config.h')
-rw-r--r--include/sway/config.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sway/config.h b/include/sway/config.h
index b20458cb..f77c3b50 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -107,6 +107,12 @@ struct seat_config {
107 list_t *attachments; // list of seat_attachment configs 107 list_t *attachments; // list of seat_attachment configs
108}; 108};
109 109
110enum config_dpms {
111 DPMS_IGNORE,
112 DPMS_ON,
113 DPMS_OFF
114};
115
110/** 116/**
111 * Size and position configuration for a particular output. 117 * Size and position configuration for a particular output.
112 * 118 *
@@ -123,6 +129,7 @@ struct output_config {
123 129
124 char *background; 130 char *background;
125 char *background_option; 131 char *background_option;
132 enum config_dpms dpms_state;
126}; 133};
127 134
128/** 135/**