diff --git a/config.h b/config.h index f14d2a9..f9844d9 100644 --- a/config.h +++ b/config.h @@ -1,19 +1,19 @@ /* appearance */ -static const int smartgaps = 0; /* 1 means no outer gap when there is only one window */ -static const int sloppyfocus = 1; /* focus follows mouse */ -static const unsigned int gappih = 10; /* horiz inner gap between windows */ -static const unsigned int gappiv = 10; /* vert inner gap between windows */ -static const unsigned int gappoh = 10; /* horiz outer gap between windows and screen edge */ -static const unsigned int gappov = 10; /* vert outer gap between windows and screen edge */ -static const int bypass_surface_visibility = 0; /* 1 means idle inhibitors will disable idle tracking even if it's surface isn't visible */ -static const unsigned int borderpx = 1; /* border pixel of windows */ +static int smartgaps = 0; /* 1 means no outer gap when there is only one window */ +static int sloppyfocus = 1; /* focus follows mouse */ +static unsigned int gappih = 10; /* horiz inner gap between windows */ +static unsigned int gappiv = 10; /* vert inner gap between windows */ +static unsigned int gappoh = 10; /* horiz outer gap between windows and screen edge */ +static unsigned int gappov = 10; /* vert outer gap between windows and screen edge */ +static int bypass_surface_visibility = 0; /* 1 means idle inhibitors will disable idle tracking even if it's surface isn't visible */ +static unsigned int borderpx = 1; /* border pixel of windows */ static const float rootcolor[] = { 0.3, 0.3, 0.3, 1.0 }; static const float bordercolor[] = { 0, 0, 0, 0 }; static const float focuscolor[] = { 1, 1, 1, 1 }; /* To conform the xdg-protocol, set the alpha to zero to restore the old behavior */ static const float fullscreen_bg[] = {0.1, 0.1, 0.1, 1.0}; -static const int warpcursor = 1; /* Warp cursor to focused client */ +static int warpcursor = 1; /* Warp cursor to focused client */ /* Autostart */ static const char *const autostart[] = { @@ -71,17 +71,17 @@ static const struct xkb_rule_names xkb_rules = { .options = NULL, }; -static const int repeat_rate = 25; -static const int repeat_delay = 600; +static int repeat_rate = 25; +static int repeat_delay = 600; /* Trackpad */ -static const int tap_to_click = 1; -static const int tap_and_drag = 1; -static const int drag_lock = 1; -static const int natural_scrolling = 0; -static const int disable_while_typing = 1; -static const int left_handed = 0; -static const int middle_button_emulation = 0; +static int tap_to_click = 1; +static int tap_and_drag = 1; +static int drag_lock = 1; +static int natural_scrolling = 0; +static int disable_while_typing = 1; +static int left_handed = 0; +static int middle_button_emulation = 0; /* You can choose between: LIBINPUT_CONFIG_SCROLL_NO_SCROLL LIBINPUT_CONFIG_SCROLL_2FG @@ -131,12 +131,14 @@ static const enum libinput_config_tap_button_map button_map = LIBINPUT_CONFIG_TA /* commands */ static const char *termcmd[] = { "st", NULL }; static const char *menucmd[] = { "spmenu_run", NULL }; +static const char *desktopcmd[] = { "spmenu_run", "-d", NULL }; static const char *webcmd[] = { "chromium", NULL }; static const Key keys[] = { /* Note that Shift changes certain key codes: c -> C, 2 -> at, etc. */ /* modifier key function argument */ { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_colon, spawn, {.v = menucmd } }, + { MODKEY, XKB_KEY_semicolon, spawn, {.v = desktopcmd } }, { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_Return, spawn, {.v = termcmd } }, { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_W, spawn, {.v = webcmd } }, { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_S, spawn, SHCMD("speedwm-screenshotutil -s") },