added QoL patches and improvements
This commit is contained in:
parent
ffc2e2e241
commit
f05276780b
6 changed files with 333 additions and 46 deletions
57
config.h
57
config.h
|
@ -12,16 +12,18 @@ static const int monoclegaps = 0; /* 1 means outer gaps in monocl
|
|||
static const unsigned int borderpx = 2; /* border pixel of windows */
|
||||
static const unsigned int gappih = 4; /* horiz inner gap between windows */
|
||||
static const unsigned int gappiv = 4; /* vert inner gap between windows */
|
||||
static const unsigned int gappoh = 1; /* horiz outer gap between windows and screen edge */
|
||||
static const unsigned int gappov = 1; /* vert outer gap between windows and screen edge */
|
||||
static const unsigned int gappoh = 2; /* horiz outer gap between windows and screen edge */
|
||||
static const unsigned int gappov = 2; /* vert outer gap between windows and screen edge */
|
||||
static const int user_bh = 30; /* 0 means that dwl will calculate barheight, >= 1 means dwl will use user_bh as the bar height. */
|
||||
static const int showbar = 1; /* 0 means no bar */
|
||||
static const int topbar = 1; /* 0 means bottom bar */
|
||||
static const char *fonts[] = {"Inconsolata:size=12"};
|
||||
static const int vertpad = 4; /* vertical padding of bar */
|
||||
static const int sidepad = 6; /* horizontal padding of bar */
|
||||
static const char *fonts[] = {"CommitMono:size=12", "Arimo Nerd Font:size=12"};
|
||||
/* This conforms to the xdg-protocol. Set the alpha to zero to restore the old behavior */
|
||||
static const float fullscreen_bg[] = {0.1f, 0.1f, 0.1f, 1.0f}; /* You can also use glsl colors */
|
||||
static int enableautoswallow = 1; /* enables autoswallowing newly spawned clients */
|
||||
static float swallowborder = 1.0f; /* add this multiplied by borderpx to border when a client is swallowed */
|
||||
static float swallowborder = 0.0f; /* add this multiplied by borderpx to border when a client is swallowed */
|
||||
static const char *cursor_theme = "macOS";
|
||||
static const char cursor_size[] = "28"; /* Make sure it's a valid integer, otherwise things will break */
|
||||
#include "/home/amolinae/.cache/hellwal/dwl-colors-bar.h"
|
||||
|
@ -54,6 +56,7 @@ static const char *const autostart[] = {
|
|||
"foot", "--server", NULL,
|
||||
"swayidle", NULL,
|
||||
"mako", NULL,
|
||||
"kanshi", NULL,
|
||||
NULL /* terminate */
|
||||
};
|
||||
|
||||
|
@ -71,9 +74,11 @@ static const Rule rules[] = {
|
|||
/* layout(s) */
|
||||
static const Layout layouts[] = {
|
||||
/* symbol arrange function */
|
||||
{ "[]=", tile },
|
||||
{ "><>", NULL }, /* no layout function means floating behavior */
|
||||
{ "[M]", monocle },
|
||||
{ "", tile },
|
||||
{ "", NULL }, /* no layout function means floating behavior */
|
||||
{ "", monocle },
|
||||
{ "", centeredmaster },
|
||||
{ "", col },
|
||||
{ NULL, NULL }, /* terminate */
|
||||
};
|
||||
|
||||
|
@ -93,13 +98,16 @@ static const MonitorRule monrules[] = {
|
|||
};
|
||||
|
||||
/* keyboard */
|
||||
static const struct xkb_rule_names xkb_rules = {
|
||||
/* can specify fields: rules, model, layout, variant, options */
|
||||
/* example:
|
||||
.options = "ctrl:nocaps",
|
||||
*/
|
||||
.layout = "latam",
|
||||
.options = NULL,
|
||||
static const struct xkb_rule_names xkb_rules[] = {
|
||||
{
|
||||
/* can specify fields: rules, model, layout, variant, options */
|
||||
.layout = "latam",
|
||||
.options = NULL,
|
||||
},
|
||||
{
|
||||
.layout = "us",
|
||||
.options = NULL,
|
||||
},
|
||||
};
|
||||
|
||||
/* input devices */
|
||||
|
@ -176,10 +184,12 @@ static const enum libinput_config_tap_button_map button_map = LIBINPUT_CONFIG_TA
|
|||
static const char *termcmd[] = { "footclient", NULL };
|
||||
static const char *menucmd[] = { "fuzzel", NULL };
|
||||
static const char *filecmd[] = { "footclient", "--title", "lf", "lf", NULL };
|
||||
static const char *brwscmd[] = { "librewolf", NULL };
|
||||
static const char *volmcmd[] = { "footclient", "--title", "ncpamixer", "ncpamixer", NULL };
|
||||
static const char *sptpcmd[] = { "footclient", "--title", "Spotify", "spotify_player", NULL };
|
||||
static const char *editcmd[] = { "footclient", "nvim", NULL };
|
||||
static const char *editcmd[] = { "footclient", "-e", "nvim", NULL };
|
||||
static const char *lockcmd[] = { "swaylock", NULL };
|
||||
static const char *blthcmd[] = { "abman", NULL };
|
||||
static const char *wcamcmd[] = { "camera", NULL };
|
||||
static const char *awsfcmd[] = { "aws", "-f", NULL };
|
||||
static const char *awsrcmd[] = { "aws", "-r", NULL };
|
||||
|
@ -188,20 +198,22 @@ static const char *sysucmd[] = { "sysutils", NULL };
|
|||
static const char *emomcmd[] = { "emojimenu", NULL };
|
||||
|
||||
static const Key keys[] = {
|
||||
|
||||
/* modifier key function argument */
|
||||
{ MODKEY, XKB_KEY_r, spawn, {.v = menucmd} },
|
||||
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_Return, spawn, {.v = termcmd} },
|
||||
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_R, spawn, {.v = brwscmd} },
|
||||
{ MODKEY, XKB_KEY_e, spawn, {.v = filecmd} },
|
||||
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_Q, spawn, {.v = sysucmd} },
|
||||
{ MODKEY, XKB_KEY_v, spawn, {.v = volmcmd} },
|
||||
{ MODKEY, XKB_KEY_b, spawn, {.v = blthcmd} },
|
||||
{ MODKEY, XKB_KEY_s, spawn, {.v = sptpcmd} },
|
||||
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_E, spawn, {.v = editcmd} },
|
||||
{ MODKEY, XKB_KEY_l, spawn, {.v = lockcmd} },
|
||||
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_c, spawn, {.v = wcamcmd} },
|
||||
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_C, spawn, {.v = wcamcmd} },
|
||||
{ WLR_MODIFIER_SHIFT, XKB_KEY_Print, spawn, {.v = awsfcmd} },
|
||||
{ 0, XKB_KEY_Print, spawn, {.v = awsrcmd} },
|
||||
{ MODKEY, XKB_KEY_Print, spawn, {.v = artrcmd} },
|
||||
{ MODKEY, XKB_KEY_space, spawn, {.v = emomcmd} },
|
||||
{ MODKEY, XKB_KEY_q, killclient, {0} },
|
||||
{ 0, XKB_KEY_XF86AudioMicMute, spawn,SHCMD("setvol -m mute") },
|
||||
{ WLR_MODIFIER_SHIFT, XKB_KEY_XF86AudioRaiseVolume, spawn,SHCMD("setvol -m up") },
|
||||
|
@ -211,11 +223,13 @@ static const Key keys[] = {
|
|||
{ 0, XKB_KEY_XF86AudioLowerVolume, spawn,SHCMD("setvol down") },
|
||||
{ 0, XKB_KEY_XF86MonBrightnessUp, spawn,SHCMD("setbr increase")},
|
||||
{ 0, XKB_KEY_XF86MonBrightnessDown,spawn,SHCMD("setbr decrease")},
|
||||
/*
|
||||
{ MODKEY, XKB_KEY_b, togglebar, {0} },
|
||||
*/
|
||||
{ MODKEY, XKB_KEY_w, switchxkbrule, {0} },
|
||||
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_B, togglebar, {0} },
|
||||
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_S, togglesticky, {0} },
|
||||
{ MODKEY, XKB_KEY_j, focusstack, {.i = +1} },
|
||||
{ MODKEY, XKB_KEY_k, focusstack, {.i = -1} },
|
||||
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_J, movestack, {.i = +1} },
|
||||
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_K, movestack, {.i = -1} },
|
||||
{ MODKEY, XKB_KEY_i, incnmaster, {.i = +1} },
|
||||
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_i, incnmaster, {.i = -1} },
|
||||
{ MODKEY, XKB_KEY_a, rotatetags, {.i = VIEW_L} },
|
||||
|
@ -249,10 +263,11 @@ static const Key keys[] = {
|
|||
{ MODKEY, XKB_KEY_t, setlayout, {.v = &layouts[0]} },
|
||||
{ MODKEY, XKB_KEY_f, setlayout, {.v = &layouts[1]} },
|
||||
{ MODKEY, XKB_KEY_m, setlayout, {.v = &layouts[2]} },
|
||||
{ MODKEY, XKB_KEY_c, setlayout, {.v = &layouts[3]} },
|
||||
{ MODKEY, XKB_KEY_v, setlayout, {.v = &layouts[4]} },
|
||||
{ MODKEY, XKB_KEY_space, setlayout, {0} },
|
||||
*/
|
||||
{ MODKEY, XKB_KEY_n, nextlayout, {0} },
|
||||
|
||||
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_space, togglefloating, {0} },
|
||||
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_F, togglefullscreen,{0} },
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue