添加切换 tag 的快捷键

This commit is contained in:
2025-08-23 04:33:14 +08:00
parent bd052edffe
commit 256b88ef91
3 changed files with 88 additions and 23 deletions

View File

@@ -90,6 +90,15 @@ const keybinding_t keys[] = {
{SUPER, XK_p, spawn, {.ptr = launcher}},
{SUPER, XK_q, quit, {.b = false}},
{SUPER, XK_r, quit, {.b = true}},
{SUPER, XK_1, select_tag, {.ui = 0}},
{SUPER, XK_2, select_tag, {.ui = 1}},
{SUPER, XK_3, select_tag, {.ui = 2}},
{SUPER, XK_4, select_tag, {.ui = 3}},
{SUPER, XK_5, select_tag, {.ui = 4}},
{SUPER, XK_6, select_tag, {.ui = 5}},
{SUPER, XK_7, select_tag, {.ui = 6}},
{SUPER, XK_8, select_tag, {.ui = 7}},
{SUPER, XK_9, select_tag, { .ui = 8 }},
};
const char *const bar_bg = "#222222";