添加快捷键聚焦 mpv

This commit is contained in:
2026-03-27 04:18:35 +08:00
parent 86a89452a7
commit a5d31cccdd

View File

@@ -105,6 +105,8 @@ static const char browser[] = "firefox-bin";
static const char browser_class[] = "firefox"; static const char browser_class[] = "firefox";
static const char chrome[] = "google-chrome-stable"; static const char chrome[] = "google-chrome-stable";
static const char chrome_class[] = "Google-chrome"; static const char chrome_class[] = "Google-chrome";
static const char mpv[] = "mpv";
static const char mpv_class[] = "mpv";
static const keyboard_t key_list[] = { static const keyboard_t key_list[] = {
{modifier_super, XK_r, spawn, {.ptr = launcher}}, {modifier_super, XK_r, spawn, {.ptr = launcher}},
{modifier_super, XK_Return, spawn, {.ptr = terminal}}, {modifier_super, XK_Return, spawn, {.ptr = terminal}},
@@ -132,6 +134,12 @@ static const keyboard_t key_list[] = {
raise_or_run, raise_or_run,
{.ptr = (const char *[]){chrome_class, chrome}}, {.ptr = (const char *[]){chrome_class, chrome}},
}, },
{
modifier_super,
XK_v,
raise_or_run,
{.ptr = (const char *[]){mpv_class, mpv}},
},
{modifier_super | modifier_shift, XK_q, quit, {.b = false}}, {modifier_super | modifier_shift, XK_q, quit, {.b = false}},
{modifier_super | modifier_control, XK_r, quit, {.b = true}}, {modifier_super | modifier_control, XK_r, quit, {.b = true}},
{modifier_super | modifier_shift, {modifier_super | modifier_shift,