优化项目结构

This commit is contained in:
DreamMaoMao 2025-02-15 18:40:40 +08:00
parent e65f4f6025
commit 7ad6cc4acf
12 changed files with 214 additions and 1656 deletions

View file

@ -11,9 +11,9 @@ static const char *animation_type = "slide"; //slide or zoom
static const char animation_fade_in = 0; // Enable animation fade in
static const float zoom_initial_ratio = 0.5; // Initial window ratio for animations
static const float fadein_begin_opacity = 0; // Begin opacity for animations fasdein
static const uint32_t animation_duration_move = 400; // Animation move speed
static const uint32_t animation_duration_move = 500; // Animation move speed
static const uint32_t animation_duration_open = 400; // Animation open speed
static const uint32_t animation_duration_tag = 300; // Animation tag speed
static const uint32_t animation_duration_tag = 400; // Animation tag speed
// static const double animation_curve[4] = {0.05,0.9,0.1,1.05}; // Animation curve
static const double animation_curve[4] = {0.46,1.0,0.29,0.99}; // Animation curve
@ -101,7 +101,7 @@ static const Rule rules[] = {
};
/* layout(s) */
static const Layout overviewlayout = { "󰃇", overview };
static const Layout overviewlayout = { "󰃇", overview, "overview" };
static const Layout layouts[] = { // At least two layouts, cannot delete less than two
/* symbol arrange function */
@ -190,14 +190,16 @@ static const enum libinput_config_tap_button_map button_map = LIBINPUT_CONFIG_TA
/* commands */
static const char *termcmd[] = { "foot", NULL };
static const char *menucmd[] = { "wofi", NULL };
/* static const char *menucmd[] = { "wofi", NULL }; */
static const Key keys[] = {
/* Note that Shift changes certain key codes: c -> C, 2 -> at, etc. */
/* modifier key function argument */
{ MODKEY, XKB_KEY_space, spawn, {.v = menucmd} },
{ MODKEY, XKB_KEY_space, spawn, SHCMD("wofi --normal-window ~/.config/maomao/wofi/config") },
{ MODKEY, XKB_KEY_Return, spawn, {.v = termcmd} },
// add your custom cmd key bind like this
/* { WLR_MODIFIER_LOGO, XKB_KEY_Return, spawn, SHCMD("google-chrome") }, */
{ WLR_MODIFIER_LOGO, XKB_KEY_Tab, focusstack, {.i = +1} },