sway/sway/commands/lock.c
Mattias Eriksson 146a22290e Add lock command for invoking swaylock_command
Add lock command to be able to bind a key to invoke the lock command
specified by swaylock_command
2018-04-24 19:55:37 +02:00

11 lines
222 B
C

#include <wlr/util/log.h>
#include "log.h"
#include "sway/commands.h"
#include "sway/idle.h"
struct cmd_results *cmd_lock(int argc, char **argv) {
invoke_swaylock();
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
}