mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-11-07 13:29:58 -05:00
updates
This commit is contained in:
parent
8eee19f93c
commit
cb86dd01f1
4 changed files with 413 additions and 544 deletions
57
config.def.h
57
config.def.h
|
|
@ -5,29 +5,19 @@
|
|||
(hex & 0xFF) / 255.0f }
|
||||
/* appearance */
|
||||
static const int sloppyfocus = 1; /* focus follows mouse */
|
||||
static const int bypass_surface_visibility = 1; /* 1 means idle inhibitors will disable idle tracking even if it's surface isn't visible */
|
||||
static const int numlock = 1;
|
||||
static const int capslock = 0;
|
||||
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 int smartborders = 1;
|
||||
static const unsigned int borderpx = 3; /* border pixel of windows */
|
||||
static const float rootcolor[] = COLOR(0x222222ff);
|
||||
static const float bordercolor[] = COLOR(0x00000000);
|
||||
static const float focuscolor[] = COLOR(0x7aa6daff);
|
||||
static const float urgentcolor[] = COLOR(0xd54e53ff);
|
||||
static const float stickycolor[] = COLOR(0x8abeb7ff);
|
||||
static const float mixedcolor[] = COLOR(0xb5bd68ff);
|
||||
/* 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, 0.0};
|
||||
static const float fullscreen_bg[] = {0.1, 0.1, 0.1, 1.0}; /* You can also use glsl colors */
|
||||
static const int center_relative_to_monitor = 1; /* 0 means center floating relative to the window area */
|
||||
|
||||
static const char *const autostart[] = {
|
||||
"/home/korei/.config/dwl/dwlinit.sh", NULL,
|
||||
NULL /* terminate */
|
||||
};
|
||||
/* tagging - TAGCOUNT must be no greater than 31 */
|
||||
#define TAGCOUNT (10)
|
||||
|
||||
static int log_level = WLR_ERROR;
|
||||
|
||||
typedef enum {
|
||||
VIEW_L = -1,
|
||||
VIEW_R = 1,
|
||||
|
|
@ -35,24 +25,32 @@ typedef enum {
|
|||
SHIFT_R = 2,
|
||||
} RotateTags;
|
||||
|
||||
/* keyboard layout change notification for status bar */
|
||||
static const char kblayout_file[] = "/tmp/dwl-keymap";
|
||||
static const char *kblayout_cmd[] = {"pkill", "-RTMIN+1", "someblocks", NULL};
|
||||
static const int kblayout_perclient = 0;
|
||||
/* Autostart */
|
||||
static const char *const autostart[] = {
|
||||
"/home/korei/.config/dwl/dwlinit.sh", NULL,
|
||||
NULL /* terminate */
|
||||
};
|
||||
|
||||
/* keyboard layout change notification for status bar */
|
||||
/* example using someblocks:
|
||||
static const char kblayout_file[] = "/tmp/dwl-keymap";
|
||||
static const char *kblayout_cmd[] = {"pkill", "-RTMIN+1", "someblocks", NULL};
|
||||
*/
|
||||
|
||||
/* tagging - TAGCOUNT must be no greater than 31 */
|
||||
#define TAGCOUNT (10)
|
||||
|
||||
/* logging */
|
||||
static int log_level = WLR_ERROR;
|
||||
|
||||
static const Rule rules[] = {
|
||||
/* app_id title tags mask isfloating monitor */
|
||||
/* examples:
|
||||
{ "Gimp", NULL, 0, 1, -1 },
|
||||
*/
|
||||
{ "corectrl", NULL, 1 << 5, 0, -1 },
|
||||
{ NULL, "Save File", 0, 1, -1 },
|
||||
{ "Gimp", NULL, 0, 1, -1 },
|
||||
*/
|
||||
{"corectrl", NULL, 1 << 5, 0, -1},
|
||||
{ NULL, "Save File", 0, 1, -1},
|
||||
{ NULL, "Confirm to replace files", 0, 1, -1},
|
||||
{ NULL, "File Operation Progress", 0, 1, -1},
|
||||
{ NULL, "Seer Console", 0, 1, -1},
|
||||
};
|
||||
|
||||
/* layout(s) */
|
||||
|
|
@ -64,9 +62,8 @@ static const Layout layouts[] = {
|
|||
{ "><>", NULL } /* no layout function means floating behavior */
|
||||
};
|
||||
|
||||
/* monitors
|
||||
* The order in which monitors are defined determines their position.
|
||||
* Non-configured monitors are always added to the left. */
|
||||
/* monitors */
|
||||
/* NOTE: ALWAYS add a fallback rule, even if you are completely sure it won't be used */
|
||||
static const MonitorRule monrules[] = {
|
||||
/* name mfact nmaster scale layout rotate/reflect x y */
|
||||
/* example of a HiDPI laptop monitor:
|
||||
|
|
@ -76,7 +73,6 @@ static const MonitorRule monrules[] = {
|
|||
{ NULL, 0.55, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, -1, -1 },
|
||||
};
|
||||
|
||||
|
||||
/* keyboard */
|
||||
static const struct xkb_rule_names xkb_rules = {
|
||||
/* can specify fields: rules, model, layout, variant, options */
|
||||
|
|
@ -127,11 +123,8 @@ LIBINPUT_CONFIG_ACCEL_PROFILE_ADAPTIVE
|
|||
static const enum libinput_config_accel_profile accel_profile = LIBINPUT_CONFIG_ACCEL_PROFILE_FLAT;
|
||||
static const double accel_speed = -0.5;
|
||||
|
||||
static const int cursor_timeout = 2;
|
||||
/* separate variables for trackpad */
|
||||
static const enum libinput_config_accel_profile accel_profile_trackpad = LIBINPUT_CONFIG_ACCEL_PROFILE_ADAPTIVE;
|
||||
static const double accel_speed_trackpad = -0.0;
|
||||
|
||||
/* You can choose between:
|
||||
LIBINPUT_CONFIG_TAP_MAP_LRM -- 1/2/3 finger tap maps to left/right/middle
|
||||
LIBINPUT_CONFIG_TAP_MAP_LMR -- 1/2/3 finger tap maps to left/middle/right
|
||||
|
|
@ -155,7 +148,7 @@ static const enum libinput_config_tap_button_map button_map = LIBINPUT_CONFIG_TA
|
|||
|
||||
/* commands */
|
||||
static const char* Term[] = { "footclient", NULL };
|
||||
static const char* TermAlt[] = { "foot", NULL };
|
||||
static const char* TermAlt[] = { "foot", "--maximized", NULL };
|
||||
static const char* Menu[] = { "fuzzel", NULL };
|
||||
static const char* PowerMenu[] = { "powermenu.sh", NULL };
|
||||
static const char* AudioUpdate[] = { "pkill", "-RTMIN+12", "someblocks", NULL };
|
||||
|
|
@ -260,7 +253,7 @@ static const Key keys[] = {
|
|||
TAGKEYS(Key_8, 7),
|
||||
TAGKEYS(Key_9, 8),
|
||||
TAGKEYS(Key_0, 9),
|
||||
{ SUPER | ALT, Key_q, quit, { 0 } },
|
||||
{ SUPER | CTRL, Key_q, quit, { 0 } },
|
||||
/* Ctrl-Alt-Backspace and Ctrl-Alt-Fx used to be handled by X server */
|
||||
{ WLR_MODIFIER_CTRL | WLR_MODIFIER_ALT, XKB_KEY_Terminate_Server, quit, { 0 } },
|
||||
#define CHVT(KEY, n) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue