mirror of
https://github.com/swaywm/sway.git
synced 2026-05-06 06:46:40 -04:00
Add lock command to be able to bind a key to invoke the lock command specified by swaylock_command
11 lines
222 B
C
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);
|
|
}
|