mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-01-15 05:17:29 -08:00
apply keycodes patch
This commit is contained in:
parent
bdea3c0e79
commit
24e679d3fb
1 changed files with 13 additions and 17 deletions
30
config.def.h
30
config.def.h
|
@ -10,6 +10,12 @@ static const int numlock = 1;
|
||||||
static const int capslock = 0;
|
static const int capslock = 0;
|
||||||
static const int smartborders = 1;
|
static const int smartborders = 1;
|
||||||
static const unsigned int borderpx = 3; /* border pixel of windows */
|
static const unsigned int borderpx = 3; /* border pixel of windows */
|
||||||
|
static const unsigned int gappih = 0; /* horiz inner gap between windows */
|
||||||
|
static const unsigned int gappiv = 0; /* vert inner gap between windows */
|
||||||
|
static const unsigned int gappoh = 0; /* horiz outer gap between windows and screen edge */
|
||||||
|
static const unsigned int gappov = 0; /* vert outer gap between windows and screen edge */
|
||||||
|
static const char *cursortheme = "Adwaita"; /* theme from ${XCURSOR_PATH} or /usr/share/cursors/xorg-x11 if emtpy*/
|
||||||
|
static const char cursorsize[] = "24";
|
||||||
static const float bordercolor[] = COLOR(0x00000000);
|
static const float bordercolor[] = COLOR(0x00000000);
|
||||||
static const float focuscolor[] = COLOR(0x7aa6daff);
|
static const float focuscolor[] = COLOR(0x7aa6daff);
|
||||||
static const float urgentcolor[] = COLOR(0xd54e53ff);
|
static const float urgentcolor[] = COLOR(0xd54e53ff);
|
||||||
|
@ -23,14 +29,6 @@ static const char *const autostart[] = {
|
||||||
"/home/korei/.config/dwl/dwlinit.sh", NULL,
|
"/home/korei/.config/dwl/dwlinit.sh", NULL,
|
||||||
NULL /* terminate */
|
NULL /* terminate */
|
||||||
};
|
};
|
||||||
|
|
||||||
enum {
|
|
||||||
VIEW_L = -1,
|
|
||||||
VIEW_R = 1,
|
|
||||||
SHIFT_L = -2,
|
|
||||||
SHIFT_R = 2,
|
|
||||||
} RotateTags;
|
|
||||||
|
|
||||||
/* tagging - TAGCOUNT must be no greater than 31 */
|
/* tagging - TAGCOUNT must be no greater than 31 */
|
||||||
#define TAGCOUNT (10)
|
#define TAGCOUNT (10)
|
||||||
|
|
||||||
|
@ -67,19 +65,19 @@ static const Layout layouts[] = {
|
||||||
/* symbol arrange function */
|
/* symbol arrange function */
|
||||||
{ "[]=", tile },
|
{ "[]=", tile },
|
||||||
{ "[M]", monocle },
|
{ "[M]", monocle },
|
||||||
{ "[v]", vertile },
|
|
||||||
{ "><>", NULL } /* no layout function means floating behavior */
|
{ "><>", NULL } /* no layout function means floating behavior */
|
||||||
};
|
};
|
||||||
|
|
||||||
/* monitors */
|
/* monitors
|
||||||
/* NOTE: ALWAYS add a fallback rule, even if you are completely sure it won't be used */
|
* The order in which monitors are defined determines their position.
|
||||||
|
* Non-configured monitors are always added to the left. */
|
||||||
static const MonitorRule monrules[] = {
|
static const MonitorRule monrules[] = {
|
||||||
/* name mfact nmaster scale layout rotate/reflect x y */
|
/* name mfact nmaster scale layout rotate/reflect x y resx resy rate adaptive custom*/
|
||||||
/* example of a HiDPI laptop monitor:
|
/* example of a HiDPI laptop monitor at 120Hz:
|
||||||
{ "eDP-1", 0.5, 1, 2, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, -1, -1 },
|
{ "eDP-1", 0.5, 1, 2, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, 0, 0, 0, 0, 120.000, 1, 0 },
|
||||||
*/
|
*/
|
||||||
/* defaults */
|
/* defaults */
|
||||||
{ NULL, 0.55, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, -1, -1 },
|
{ NULL, 0.55, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, 0, 0, 0, 0, 120.000999, 0, 0 },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -134,7 +132,6 @@ static const enum libinput_config_accel_profile accel_profile = LIBINPUT_CONFIG_
|
||||||
static const double accel_speed = -0.5;
|
static const double accel_speed = -0.5;
|
||||||
|
|
||||||
static const int cursor_timeout = 2;
|
static const int cursor_timeout = 2;
|
||||||
|
|
||||||
/* separate variables for trackpad */
|
/* separate variables for trackpad */
|
||||||
static const enum libinput_config_accel_profile accel_profile_trackpad = LIBINPUT_CONFIG_ACCEL_PROFILE_ADAPTIVE;
|
static const enum libinput_config_accel_profile accel_profile_trackpad = LIBINPUT_CONFIG_ACCEL_PROFILE_ADAPTIVE;
|
||||||
static const double accel_speed_trackpad = -0.0;
|
static const double accel_speed_trackpad = -0.0;
|
||||||
|
@ -145,7 +142,6 @@ LIBINPUT_CONFIG_TAP_MAP_LMR -- 1/2/3 finger tap maps to left/middle/right
|
||||||
*/
|
*/
|
||||||
static const enum libinput_config_tap_button_map button_map = LIBINPUT_CONFIG_TAP_MAP_LRM;
|
static const enum libinput_config_tap_button_map button_map = LIBINPUT_CONFIG_TAP_MAP_LRM;
|
||||||
|
|
||||||
|
|
||||||
/* If you want to use the windows key for MODKEY, use WLR_MODIFIER_LOGO */
|
/* If you want to use the windows key for MODKEY, use WLR_MODIFIER_LOGO */
|
||||||
#define MODKEY WLR_MODIFIER_LOGO
|
#define MODKEY WLR_MODIFIER_LOGO
|
||||||
#define SHIFT WLR_MODIFIER_SHIFT
|
#define SHIFT WLR_MODIFIER_SHIFT
|
||||||
|
|
Loading…
Reference in a new issue