From d1fa848632aeaf1ce4775f9bfcd5ecba28f8d45f Mon Sep 17 00:00:00 2001 From: Zedhugh Chen Date: Mon, 26 Jan 2026 14:15:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=AB=E6=8D=B7=E9=94=AE=E4=B8=BB=20modifier?= =?UTF-8?q?=20=E4=BB=8E=20ALT=20=E5=88=87=E6=8D=A2=E5=88=B0=20SUPER?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/default_config.h | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/src/default_config.h b/src/default_config.h index 90fc3af..777eeed 100644 --- a/src/default_config.h +++ b/src/default_config.h @@ -30,19 +30,25 @@ static const button_t button_list[] = { {click_tag, modifier_none, button_left, select_tag_of_current_monitor, {0}}, }; -#define TAGKEYS(KEY, TAG) \ - {modifier_alt, KEY, select_tag_of_current_monitor, {.ui = TAG}}, { \ - modifier_alt | modifier_shift, KEY, send_client_to_tag, {.ui = TAG}, \ +#define TAGKEYS(KEY, TAG) \ + {modifier_super, KEY, select_tag_of_current_monitor, {.ui = TAG}}, { \ + modifier_super | modifier_shift, KEY, send_client_to_tag, {.ui = TAG}, \ } static const char launcher[] = "rofi -show combi -modes combi -combi-modes window,drun,run,ssh,windowcd"; static const keyboard_t key_list[] = { - {modifier_alt, XK_p, spawn, {.ptr = launcher}}, - {modifier_alt, XK_q, quit, {.b = false}}, - {modifier_alt, XK_r, quit, {.b = true}}, - {modifier_alt | modifier_shift, XK_j, focus_client_in_same_tag, {.b = true}}, - {modifier_alt | modifier_shift, XK_k, focus_client_in_same_tag, {.b = false}}, + {modifier_super, XK_p, spawn, {.ptr = launcher}}, + {modifier_super, XK_q, quit, {.b = false}}, + {modifier_super, XK_r, quit, {.b = true}}, + {modifier_super | modifier_shift, + XK_j, + focus_client_in_same_tag, + {.b = true}}, + {modifier_super | modifier_shift, + XK_k, + focus_client_in_same_tag, + {.b = false}}, TAGKEYS(XK_1, 1 << 0), TAGKEYS(XK_2, 1 << 1), @@ -54,7 +60,7 @@ static const keyboard_t key_list[] = { TAGKEYS(XK_8, 1 << 7), TAGKEYS(XK_9, 1 << 8), - {modifier_alt, XK_o, send_client_to_next_monitor, {0}}, + {modifier_super, XK_o, send_client_to_next_monitor, {0}}, }; static const layout_t layout_list[] = {