Add menu patch
This commit is contained in:
12
config.h
12
config.h
@@ -31,6 +31,14 @@ static const float fullscreen_bg[] = {0.1f, 0.1f, 0.1f, 1.0f}; /* You ca
|
||||
|
||||
static int log_level = WLR_ERROR;
|
||||
|
||||
#if MENU_PATCH
|
||||
static const Menu menus[] = {
|
||||
/* command feed function action function */
|
||||
{ "rofi -dmenu -i", menuwinfeed, menuwinaction },
|
||||
{ "rofi -dmenu -i", menulayoutfeed, menulayoutaction },
|
||||
};
|
||||
#endif // MENU_PATCH
|
||||
|
||||
#if SETUPENV_PATCH
|
||||
static const Env envs[] = {
|
||||
/* variable value */
|
||||
@@ -201,6 +209,10 @@ static const Key keys[] = {
|
||||
{ MODKEY, XKB_KEY_g, setlayout, {.v = &layouts[3]} },
|
||||
#endif // GAPLESSGRID_PATCH
|
||||
{ MODKEY, XKB_KEY_space, setlayout, {0} },
|
||||
#if MENU_PATCH
|
||||
{ MODKEY|WLR_MODIFIER_SHIFT|WLR_MODIFIER_CTRL, XKB_KEY_p, menu, {.v = &menus[0]} },
|
||||
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_P, menu, {.v = &menus[1]} },
|
||||
#endif // MENU_PATCH
|
||||
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_space, togglefloating, {0} },
|
||||
{ MODKEY, XKB_KEY_e, togglefullscreen, {0} },
|
||||
#if FAKE_FULLSCREEN_CLIENT_PATCH
|
||||
|
Reference in New Issue
Block a user