dwm

My patch set and modifications to dwm
git clone git://git.ethandl.dev/dwm
Log | Files | Refs | README | LICENSE

commit 25b5191fb9b661ab3742aecf5461d8712a57821a
parent 4c9cbaaef3d57367908dc86298afc378d71bafc1
Author: Ethan Long <Ethan.Long@anu.edu.au>
Date:   Thu, 26 Dec 2024 18:15:08 +1100

Added my config

Diffstat:
Mconfig.h | 32+++++++++++++++++++++-----------
1 file changed, 21 insertions(+), 11 deletions(-)

diff --git a/config.h b/config.h @@ -1,7 +1,8 @@ /* See LICENSE file for copyright and license details. */ +#include <X11/XF86keysym.h> /* appearance */ -static const unsigned int borderpx = 1; /* border pixel of windows */ +static const unsigned int borderpx = 3; /* border pixel of windows */ static const unsigned int snap = 32; /* snap pixel */ static const unsigned int gappih = 10; /* horiz inner gap between windows */ static const unsigned int gappiv = 10; /* vert inner gap between windows */ @@ -10,17 +11,20 @@ static const unsigned int gappov = 10; /* vert outer gap between window static int smartgaps = 1; /* 1 means no outer gap when there is only one window */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ -static const char *fonts[] = { "monospace:size=10" }; -static const char dmenufont[] = "monospace:size=10"; -static const char col_gray1[] = "#222222"; -static const char col_gray2[] = "#444444"; -static const char col_gray3[] = "#bbbbbb"; -static const char col_gray4[] = "#eeeeee"; -static const char col_cyan[] = "#005577"; +static const char *fonts[] = { "Victor Mono:size=10:style=Bold" }; +static const char dmenufont[] = "Victor Mono:size=10:style=Bold"; +static const char col_base[] = "#1e1e2e"; +static const char col_mantle[] = "#181825"; +static const char col_text[] = "#cdd6f4"; +static const char col_overlay2[] = "#9399b2"; +static const char col_lavender[] = "#b4befe"; +static const char col_blue[] = "#89b4fa"; +static const char col_peach[] = "#fab387"; +static const char col_red[] = "#f38ba8"; static const char *colors[][3] = { /* fg bg border */ - [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, - [SchemeSel] = { col_gray4, col_cyan, col_cyan }, + [SchemeNorm] = { col_lavender, col_base, col_base }, + [SchemeSel] = { col_base, col_lavender, col_lavender }, }; /* tagging */ @@ -78,8 +82,11 @@ static const Layout layouts[] = { /* commands */ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ -static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; +static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_base, "-nf", col_lavender, "-sb", col_lavender, "-sf", col_base, NULL }; static const char *termcmd[] = { "alacritty", NULL }; +static const char *volumedowncmd[] = { "pamixer", "-d", "5", NULL}; +static const char *volumeupcmd[] = { "pamixer", "-i", "5", NULL}; +static const char *volumemutecmd[] = { "pamixer", "-t", NULL}; static const Key keys[] = { /* modifier key function argument */ @@ -132,6 +139,9 @@ static const Key keys[] = { TAGKEYS( XK_8, 7) TAGKEYS( XK_9, 8) { MODKEY|ShiftMask, XK_c, quit, {0} }, + { 0, XF86XK_AudioLowerVolume, spawn, {.v = volumedowncmd} }, + { 0, XF86XK_AudioRaiseVolume, spawn, {.v = volumeupcmd} }, + { 0, XF86XK_AudioMute, spawn, {.v = volumemutecmd} }, }; /* button definitions */