设置快捷键

This commit is contained in:
2025-11-22 22:22:54 +08:00
parent 76f9e15130
commit e5927094d1
9 changed files with 93 additions and 6 deletions

View File

@@ -1,8 +1,18 @@
#include "action.h"
#include <glib.h>
#include <string.h>
#include "monitor.h"
#include "wm.h"
void select_tag_of_current_monitor(const user_action_arg_t *arg) {
monitor_select_tag(wm.current_monitor, arg->ui);
}
void spawn(const user_action_arg_t *arg) {
const char *cmd = (const char *)arg->ptr;
if (cmd == nullptr || strlen(cmd) == 0) return;
g_spawn_command_line_async((const char *)arg->ptr, nullptr);
}