From 003147bc91705aab36cc4dee10725c51693dcfea Mon Sep 17 00:00:00 2001 From: speedie Date: Tue, 6 Jun 2023 01:37:07 +0200 Subject: [PATCH] some config changes --- config.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/config.h b/config.h index 2ae7591..3f080f5 100644 --- a/config.h +++ b/config.h @@ -2,9 +2,9 @@ static const int sloppyfocus = 1; /* focus follows mouse */ 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 const float rootcolor[] = {0.3, 0.3, 0.3, 1.0}; -static const float bordercolor[] = {0.5, 0.5, 0.5, 1.0}; -static const float focuscolor[] = {1.0, 0.0, 0.0, 1.0}; +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}; @@ -118,12 +118,15 @@ 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 *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|WLR_MODIFIER_SHIFT, XKB_KEY_Return, spawn, {.v = termcmd} }, + { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_colon, spawn, {.v = menucmd } }, + { 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") }, { MODKEY, XKB_KEY_j, focusstack, {.i = +1} }, { MODKEY, XKB_KEY_k, focusstack, {.i = -1} }, { MODKEY, XKB_KEY_i, incnmaster, {.i = +1} },