Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
3fafc5e70f
update config 2025-03-14 11:53:38 +01:00
2 changed files with 17 additions and 16 deletions

View file

@ -4,7 +4,7 @@
((hex >> 8) & 0xFF) / 255.0f, \ ((hex >> 8) & 0xFF) / 255.0f, \
(hex & 0xFF) / 255.0f } (hex & 0xFF) / 255.0f }
/* appearance */ /* appearance */
static const int sloppyfocus = 1; /* focus follows mouse */ static const int sloppyfocus = 0; /* 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 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 unsigned int borderpx = 1; /* border pixel of windows */
static const int draw_minimal_borders = 1; /* merge adjacent borders */ static const int draw_minimal_borders = 1; /* merge adjacent borders */
@ -16,19 +16,19 @@ static const float resize_factor = 0.0002f; /* Resize multiplier for m
static const uint32_t resize_interval_ms = 16; /* Resize interval depends on framerate and screen refresh rate. */ static const uint32_t resize_interval_ms = 16; /* Resize interval depends on framerate and screen refresh rate. */
static const int showbar = 1; /* 0 means no bar */ static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */ static const int topbar = 1; /* 0 means bottom bar */
static const char *fonts[] = {"monospace:size=12"}; static const char *fonts[] = {"monospace:size=12", "NotoSansM Nerd Font Mono:size=12"};
static const float rootcolor[] = COLOR(0x6495eded); static const float rootcolor[] = COLOR(0x6495eded);
/* This conforms to the xdg-protocol. Set the alpha to zero to restore the old behavior */ /* This conforms to the xdg-protocol. Set the alpha to zero to restore the old behavior */
static uint32_t colors[][3] = { static uint32_t colors[][3] = {
/* fg bg border */ /* fg bg border */
[SchemeNorm] = { 0xff7777ff, 0x000000c0, 0x30346dff }, [SchemeNorm] = { 0xB33A25ff, 0x000000c0, 0x176815ff },
[SchemeSel] = { 0xff7777ff, 0x00000050, 0x6495edff }, [SchemeSel] = { 0xDA651Dff, 0x00000050, 0x8FC711ff },
[SchemeUrg] = { 0, 0, 0xffaaaaff }, [SchemeUrg] = { 0, 0, 0xffaaaaff },
}; };
enum Direction { DIR_LEFT, DIR_RIGHT, DIR_UP, DIR_DOWN }; enum Direction { DIR_LEFT, DIR_RIGHT, DIR_UP, DIR_DOWN };
/* tagging - TAGCOUNT must be no greater than 31 */ /* tagging - TAGCOUNT must be no greater than 31 */
static char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; static char *tags[] = { "󰍪", "1", "2", "3", "\uf120", "\uf4ed", "\ueb11" };
#define TAGCOUNT (sizeof(tags) / sizeof(tags[0])) #define TAGCOUNT (sizeof(tags) / sizeof(tags[0]))
/* logging */ /* logging */
@ -36,9 +36,9 @@ static int log_level = WLR_ERROR;
/* Autostart */ /* Autostart */
static const char *const autostart[] = { static const char *const autostart[] = {
"wbg", "/home/stachelbeere1248/.desktop/wallpaper", NULL, "wbg", "/home/stachel/.desktop/wallpaper", NULL,
"vesktop", NULL, "vesktop", NULL,
"foot", NULL, "foot", "--term", "xterm-256color", NULL,
NULL /* terminate */ NULL /* terminate */
}; };
@ -56,10 +56,10 @@ static const Rule rules[] = {
/* layout(s) */ /* layout(s) */
static const Layout layouts[] = { static const Layout layouts[] = {
/* symbol arrange function */ /* symbol arrange function */
{ "|w|", btrtile }, { "[+]", btrtile },
{ "[]=", tile }, { "[]=", tile },
{ "><>", NULL }, /* no layout function means floating behavior */ { "><>", NULL }, /* no layout function means floating behavior */
{ "[M]", monocle }, //{ "[M]", monocle },
}; };
/* monitors */ /* monitors */
@ -134,7 +134,7 @@ 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;
static const int cursor_timeout = 5; static const int cursor_timeout = 1;
/* 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
@ -146,10 +146,10 @@ static const int cursor_timeout = 5;
{ MODKEY|WLR_MODIFIER_CTRL|WLR_MODIFIER_SHIFT,KEY,toggletag, {.ui = 1 << TAG} } { MODKEY|WLR_MODIFIER_CTRL|WLR_MODIFIER_SHIFT,KEY,toggletag, {.ui = 1 << TAG} }
/* helper for spawning shell commands in the pre dwm-5.0 fashion */ /* helper for spawning shell commands in the pre dwm-5.0 fashion */
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } #define SHCMD(cmd) { .v = (const char*[]){ "yash", "-c", cmd, NULL } }
/* commands */ /* commands */
static const char *termcmd[] = { "foot", NULL }; static const char *termcmd[] = { "foot", "--term", "xterm-256color", NULL };
static const char *menucmd[] = { "mew-run", NULL }; static const char *menucmd[] = { "mew-run", NULL };
static const char *upvol[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "+1%", NULL }; static const char *upvol[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "+1%", NULL };
static const char *downvol[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "-1%", NULL }; static const char *downvol[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "-1%", NULL };
@ -179,7 +179,8 @@ static const Key keys[] = {
{ MODKEY, Key_p, incnmaster, {.i = -1} }, { MODKEY, Key_p, incnmaster, {.i = -1} },
{ MODKEY, Key_h, setmfact, {.f = -0.05f} }, { MODKEY, Key_h, setmfact, {.f = -0.05f} },
{ MODKEY, Key_l, setmfact, {.f = +0.05f} }, { MODKEY, Key_l, setmfact, {.f = +0.05f} },
{ MODKEY|WLR_MODIFIER_SHIFT, Key_Return, zoom, {0} }, { MODKEY|WLR_MODIFIER_SHIFT, Key_Return, swapclients, {0} },
{ MODKEY|WLR_MODIFIER_CTRL, Key_Return, zoom, {0} },
{ MODKEY, Key_Tab, view, {0} }, { MODKEY, Key_Tab, view, {0} },
{ MODKEY|WLR_MODIFIER_SHIFT, Key_q, killclient, {0} }, { MODKEY|WLR_MODIFIER_SHIFT, Key_q, killclient, {0} },
{ MODKEY, Key_w, setlayout, {.v = &layouts[0]} }, { MODKEY, Key_w, setlayout, {.v = &layouts[0]} },
@ -205,8 +206,8 @@ static const Key keys[] = {
TAGKEYS( Key_5, 4), TAGKEYS( Key_5, 4),
TAGKEYS( Key_6, 5), TAGKEYS( Key_6, 5),
TAGKEYS( Key_7, 6), TAGKEYS( Key_7, 6),
TAGKEYS( Key_8, 7), // TAGKEYS( Key_8, 7),
TAGKEYS( Key_9, 8), // TAGKEYS( Key_9, 8),
{ MODKEY|WLR_MODIFIER_SHIFT, Key_e, quit, {0} }, { MODKEY|WLR_MODIFIER_SHIFT, Key_e, quit, {0} },
/* Ctrl-Alt-Backspace and Ctrl-Alt-Fx used to be handled by X server */ /* Ctrl-Alt-Backspace and Ctrl-Alt-Fx used to be handled by X server */

2
dwl.c
View file

@ -1981,7 +1981,7 @@ drawbar(Monitor *m)
if ((w = m->b.width - tw - x) > m->b.height) { if ((w = m->b.width - tw - x) > m->b.height) {
if (c) { if (c) {
drwl_setscheme(m->drw, colors[m == selmon ? SchemeSel : SchemeNorm]); drwl_setscheme(m->drw, colors[SchemeNorm]);
drwl_text(m->drw, x, 0, w, m->b.height, m->lrpad / 2, client_get_title(c), 0); drwl_text(m->drw, x, 0, w, m->b.height, m->lrpad / 2, client_get_title(c), 0);
if (c && c->isfloating) if (c && c->isfloating)
drwl_rect(m->drw, x + boxs, boxs, boxw, boxw, 0, 0); drwl_rect(m->drw, x + boxs, boxs, boxw, boxw, 0, 0);