Add DPMS and lock handling

This commit is contained in:
Mattias Eriksson 2018-04-20 12:28:07 +02:00
parent d2f7811854
commit 3a327c48c8
12 changed files with 154 additions and 3 deletions

View file

@ -147,6 +147,9 @@ sway_cmd cmd_unmark;
sway_cmd cmd_workspace;
sway_cmd cmd_ws_auto_back_and_forth;
sway_cmd cmd_workspace_layout;
sway_cmd cmd_idle_timeout;
sway_cmd cmd_lock_timeout;
sway_cmd cmd_swaylock_command;
sway_cmd bar_cmd_activate_button;
sway_cmd bar_cmd_binding_mode_indicator;

View file

@ -296,6 +296,9 @@ struct sway_config {
enum sway_container_layout default_layout;
char *font;
int font_height;
uint32_t idle_timeout;
uint32_t lock_timeout;
char *swaylock_command;
// Flags
bool focus_follows_mouse;

6
include/sway/idle.h Normal file
View file

@ -0,0 +1,6 @@
#ifndef _SWAY_IDLE_H
#define _SWAY_IDLE_H
#include <sway/server.h>
bool idle_init(struct sway_server *server);
#endif