From 3fafc5e70f771a2e1a8859f77953902e96870aa2 Mon Sep 17 00:00:00 2001 From: Stachelbeere1248 Date: Fri, 14 Mar 2025 11:53:38 +0100 Subject: [PATCH] update config --- config.h | 31 ++++++++++++++++--------------- dwl.c | 2 +- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/config.h b/config.h index 531d7b8..6cefc3d 100644 --- a/config.h +++ b/config.h @@ -4,7 +4,7 @@ ((hex >> 8) & 0xFF) / 255.0f, \ (hex & 0xFF) / 255.0f } /* 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 unsigned int borderpx = 1; /* border pixel of windows */ 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 int showbar = 1; /* 0 means no 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); /* This conforms to the xdg-protocol. Set the alpha to zero to restore the old behavior */ static uint32_t colors[][3] = { /* fg bg border */ - [SchemeNorm] = { 0xff7777ff, 0x000000c0, 0x30346dff }, - [SchemeSel] = { 0xff7777ff, 0x00000050, 0x6495edff }, + [SchemeNorm] = { 0xB33A25ff, 0x000000c0, 0x176815ff }, + [SchemeSel] = { 0xDA651Dff, 0x00000050, 0x8FC711ff }, [SchemeUrg] = { 0, 0, 0xffaaaaff }, }; enum Direction { DIR_LEFT, DIR_RIGHT, DIR_UP, DIR_DOWN }; /* 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])) /* logging */ @@ -36,9 +36,9 @@ static int log_level = WLR_ERROR; /* Autostart */ static const char *const autostart[] = { - "wbg", "/home/stachelbeere1248/.desktop/wallpaper", NULL, + "wbg", "/home/stachel/.desktop/wallpaper", NULL, "vesktop", NULL, - "foot", NULL, + "foot", "--term", "xterm-256color", NULL, NULL /* terminate */ }; @@ -56,10 +56,10 @@ static const Rule rules[] = { /* layout(s) */ static const Layout layouts[] = { /* symbol arrange function */ - { "|w|", btrtile }, + { "[+]", btrtile }, { "[]=", tile }, { "><>", NULL }, /* no layout function means floating behavior */ - { "[M]", monocle }, + //{ "[M]", monocle }, }; /* 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 int cursor_timeout = 5; +static const int cursor_timeout = 1; /* If you want to use the windows key for MODKEY, use 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} } /* 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 */ -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 *upvol[] = { "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_h, 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|WLR_MODIFIER_SHIFT, Key_q, killclient, {0} }, { MODKEY, Key_w, setlayout, {.v = &layouts[0]} }, @@ -205,8 +206,8 @@ static const Key keys[] = { TAGKEYS( Key_5, 4), TAGKEYS( Key_6, 5), TAGKEYS( Key_7, 6), - TAGKEYS( Key_8, 7), - TAGKEYS( Key_9, 8), +// TAGKEYS( Key_8, 7), +// TAGKEYS( Key_9, 8), { MODKEY|WLR_MODIFIER_SHIFT, Key_e, quit, {0} }, /* Ctrl-Alt-Backspace and Ctrl-Alt-Fx used to be handled by X server */ diff --git a/dwl.c b/dwl.c index d764b7f..b22adea 100644 --- a/dwl.c +++ b/dwl.c @@ -1981,7 +1981,7 @@ drawbar(Monitor *m) if ((w = m->b.width - tw - x) > m->b.height) { 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); if (c && c->isfloating) drwl_rect(m->drw, x + boxs, boxs, boxw, boxw, 0, 0);