添加快捷键将窗口移动到其他 tag 和 monitor

This commit is contained in:
2025-08-30 18:47:44 +08:00
parent c5e2b4c081
commit ad1d413c62
5 changed files with 143 additions and 6 deletions

View File

@@ -96,6 +96,7 @@ const keybinding_t keys[] = {
{ALT, XK_k, focus_stack, {.b = false}},
{SUPER | SHIFT, XK_j, focus_monitor, {.b = true}},
{SUPER | SHIFT, XK_k, focus_monitor, {.b = false}},
{SUPER, XK_o, move_to_monitor, {.b = true}},
{
SUPER,
@@ -128,6 +129,16 @@ const keybinding_t keys[] = {
{SUPER, XK_7, select_tag, {.ui = 1 << 6}},
{SUPER, XK_8, select_tag, {.ui = 1 << 7}},
{SUPER, XK_9, select_tag, {.ui = 1 << 8}},
{SUPER | SHIFT, XK_1, move_to_tag, {.ui = 1 << 0}},
{SUPER | SHIFT, XK_2, move_to_tag, {.ui = 1 << 1}},
{SUPER | SHIFT, XK_3, move_to_tag, {.ui = 1 << 2}},
{SUPER | SHIFT, XK_4, move_to_tag, {.ui = 1 << 3}},
{SUPER | SHIFT, XK_5, move_to_tag, {.ui = 1 << 4}},
{SUPER | SHIFT, XK_6, move_to_tag, {.ui = 1 << 5}},
{SUPER | SHIFT, XK_7, move_to_tag, {.ui = 1 << 6}},
{SUPER | SHIFT, XK_8, move_to_tag, {.ui = 1 << 7}},
{SUPER | SHIFT, XK_9, move_to_tag, {.ui = 1 << 8}},
};
const char *const bar_bg = "#222222";