suckless

my configuration for dwm, st, dmenu.
git clone https://s.sonu.ch/~rei/suckless.git
Log | Files | Refs | README

commit f472158cbf8c4a8d187ddb4323c7cc06253e4bcb
parent be5960a1dbd71edca58df5d9b3a129a4c888fd9d
Author: rei <rei@sonu.ch>
Date:   Tue, 24 Aug 2021 16:56:43 +0300

Paint it, black

Diffstat:
Mdwm/config.h | 17++++++++---------
Mst/config.h | 65++++++++++++++++++++++++++++++++++++-----------------------------
Dst/patches/st-dracula-0.8.2.diff | 84-------------------------------------------------------------------------------
Dst/patches/st-nordtheme-0.8.2.diff | 100-------------------------------------------------------------------------------
4 files changed, 44 insertions(+), 222 deletions(-)

diff --git a/dwm/config.h b/dwm/config.h @@ -12,12 +12,11 @@ static const unsigned int systrayonleft = 0; static const int showsystray = 1; static const char *fonts[] = { "IBM Plex Mono:size=10" }; static const char dmenufont[] = "IBM Plex Mono:size=10"; -static const char col_gray1[] = "#3b4252"; -static const char col_gray2[] = "#4c566a"; -static const char col_gray3[] = "#e5e9f0"; -static const char col_gray4[] = "#eceff4"; -/* static const char col_cyan[] = "#005577"; */ -static const char col_cyan[] = "#81a1c1"; +static const char col_gray1[] = "#000000"; +static const char col_gray2[] = "#44475a"; +static const char col_gray3[] = "#bbbbbb"; +static const char col_gray4[] = "#ffffff"; +static const char col_cyan[] = "#6d6d6d"; static const char *colors[][3] = { /* fg bg border */ [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, @@ -38,7 +37,7 @@ static const Rule rules[] = { }; /* layout(s) */ - static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */ + static const float mfact = 0.50; /* factor of master area size [0.05..0.95] */ static const int nmaster = 1; /* number of clients in master area */ static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */ static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */ @@ -79,13 +78,13 @@ static Key keys[] = { { 0, XF86XK_AudioLowerVolume, spawn, {.v = downvol } }, { 0, XF86XK_AudioRaiseVolume, spawn, {.v = upvol } }, { 0, XF86XK_AudioMute, spawn, {.v = mutevol } }, - { MODKEY, XK_d, spawn, {.v = dmenucmd } }, + { MODKEY, XK_d, spawn, {.v = dmenucmd } }, { MODKEY, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } }, { MODKEY, XK_i, incnmaster, {.i = +1 } }, - { MODKEY, XK_d, incnmaster, {.i = -1 } }, + { MODKEY|ShiftMask, XK_d, incnmaster, {.i = -1 } }, { MODKEY, XK_h, setmfact, {.f = -0.05} }, { MODKEY, XK_l, setmfact, {.f = +0.05} }, { MODKEY, XK_Return, zoom, {0} }, diff --git a/st/config.h b/st/config.h @@ -95,42 +95,49 @@ unsigned int tabspaces = 8; /* Terminal colors (16 first used in escape sequence) */ static const char *colorname[] = { - /* 8 normal colors */ - "#3b4252", /* black */ - "#bf616a", /* red */ - "#a3be8c", /* green */ - "#ebcb8b", /* yellow */ - "#81a1c1", /* blue */ - "#b48ead", /* magenta */ - "#88c0d0", /* cyan */ - "#e5e9f0", /* white */ - - /* 8 bright colors */ - "#4c566a", /* black */ - "#bf616a", /* red */ - "#a3be8c", /* green */ - "#ebcb8b", /* yellow */ - "#81a1c1", /* blue */ - "#b48ead", /* magenta */ - "#8fbcbb", /* cyan */ - "#eceff4", /* white */ - - [255] = 0, - - /* more colors can be added after 255 to use with DefaultXX */ - "#2e3440", /* background */ - "#d8dee9", /* foreground */ -}; + /* 8 normal colors */ + "black", + "red3", + "green3", + "yellow3", + "blue2", + "magenta3", + "cyan3", + "gray90", + + /* 8 bright colors */ + "gray50", + "red", + "green", + "yellow", + "#5c5cff", + "magenta", + "cyan", + "white", + + [255] = 0, + + /* more colors can be added after 255 to use with DefaultXX */ + "#cccccc", + "#555555", +}; /* * Default colors (colorname index) * foreground, background, cursor, reverse cursor */ -unsigned int defaultfg = 257; -unsigned int defaultbg = 256; + +/* unsigned int defaultfg = 257; +unsigned int defaultbg = 256; */ + +unsigned int defaultfg = 7; +unsigned int defaultbg = 0; static unsigned int defaultcs = 257; -static unsigned int defaultrcs = 256; +static unsigned int defaultrcs = 257; + +unsigned int defaultitalic = 7; +unsigned int defaultunderline = 7; /* * Default shape of cursor diff --git a/st/patches/st-dracula-0.8.2.diff b/st/patches/st-dracula-0.8.2.diff @@ -1,84 +0,0 @@ -diff --git a/config.def.h b/config.def.h -index 877afab..6a1699f 100644 ---- a/config.def.h -+++ b/config.def.h -@@ -84,44 +84,49 @@ static unsigned int tabspaces = 8; - - /* Terminal colors (16 first used in escape sequence) */ - static const char *colorname[] = { -- /* 8 normal colors */ -- "black", -- "red3", -- "green3", -- "yellow3", -- "blue2", -- "magenta3", -- "cyan3", -- "gray90", -- -- /* 8 bright colors */ -- "gray50", -- "red", -- "green", -- "yellow", -- "#5c5cff", -- "magenta", -- "cyan", -- "white", -- -- [255] = 0, -- -- /* more colors can be added after 255 to use with DefaultXX */ -- "#cccccc", -- "#555555", --}; - -+ /* 8 normal colors */ -+ [0] = "#000000", /* black */ -+ [1] = "#ff5555", /* red */ -+ [2] = "#50fa7b", /* green */ -+ [3] = "#f1fa8c", /* yellow */ -+ [4] = "#bd93f9", /* blue */ -+ [5] = "#ff79c6", /* magenta */ -+ [6] = "#8be9fd", /* cyan */ -+ [7] = "#bbbbbb", /* white */ -+ -+ /* 8 bright colors */ -+ [8] = "#44475a", /* black */ -+ [9] = "#ff5555", /* red */ -+ [10] = "#50fa7b", /* green */ -+ [11] = "#f1fa8c", /* yellow */ -+ [12] = "#bd93f9", /* blue */ -+ [13] = "#ff79c6", /* magenta */ -+ [14] = "#8be9fd", /* cyan */ -+ [15] = "#ffffff", /* white */ -+ -+ /* special colors */ -+ [256] = "#282a36", /* background */ -+ [257] = "#f8f8f2", /* foreground */ -+}; - - /* - * Default colors (colorname index) -- * foreground, background, cursor, reverse cursor -+ * foreground, background, cursor - */ --unsigned int defaultfg = 7; --unsigned int defaultbg = 0; --static unsigned int defaultcs = 256; -+unsigned int defaultfg = 257; -+unsigned int defaultbg = 256; -+static unsigned int defaultcs = 257; - static unsigned int defaultrcs = 257; - - /* -+ * Colors used, when the specific fg == defaultfg. So in reverse mode this -+ * will reverse too. Another logic would only make the simple feature too -+ * complex. -+ */ -+unsigned int defaultitalic = 7; -+unsigned int defaultunderline = 7; -+/* - * Default shape of cursor - * 2: Block ("█") - * 4: Underline ("_") diff --git a/st/patches/st-nordtheme-0.8.2.diff b/st/patches/st-nordtheme-0.8.2.diff @@ -1,100 +0,0 @@ -From 3e8f83d40c6fdd89653ef547aa16cffe1f3c1793 Mon Sep 17 00:00:00 2001 -From: aleks <aleks.stier@icloud.com> -Date: Sun, 4 Aug 2019 13:23:10 +0200 -Subject: [PATCH] Apply nord-theme - -*"Inspired by the beauty of the arctic, the colors reflect the cold, yet -harmonious world of ice and the colorfulness of the Aurora Borealis."* - [Nord -Theme](https://www.nordtheme.com/) - -There are also many [ports](https://www.nordtheme.com/ports) for other programs -like [vim](https://www.nordtheme.com/ports/vim) and -[tmux](https://www.nordtheme.com/ports/tmux) to make the overall appearance -coherent. I would recommend to use it in combination with the arc-theme for gtk -(fits perfectly). - -The default behaviour of st is to reverse the fore- and background colors of -each selected cell. If you want that the selection-colors are not reveresed but -instead have fixed fore- and background colors apply on top of this patch the -[selectioncolors](../selectioncolors/)-patch. Then set the following settings -in your config.h: - -static unsigned int defaultcs = 257; -static unsigned int defaultrcs = 257; -unsigned int selectionfg = 257; -unsigned int selectionbg = 0; ---- - config.def.h | 44 ++++++++++++++++++++++---------------------- - 1 file changed, 22 insertions(+), 22 deletions(-) - -diff --git a/config.def.h b/config.def.h -index 0e01717..fb504d4 100644 ---- a/config.def.h -+++ b/config.def.h -@@ -85,30 +85,30 @@ unsigned int tabspaces = 8; - /* Terminal colors (16 first used in escape sequence) */ - static const char *colorname[] = { - /* 8 normal colors */ -- "black", -- "red3", -- "green3", -- "yellow3", -- "blue2", -- "magenta3", -- "cyan3", -- "gray90", -+ "#3b4252", /* black */ -+ "#bf616a", /* red */ -+ "#a3be8c", /* green */ -+ "#ebcb8b", /* yellow */ -+ "#81a1c1", /* blue */ -+ "#b48ead", /* magenta */ -+ "#88c0d0", /* cyan */ -+ "#e5e9f0", /* white */ - - /* 8 bright colors */ -- "gray50", -- "red", -- "green", -- "yellow", -- "#5c5cff", -- "magenta", -- "cyan", -- "white", -+ "#4c566a", /* black */ -+ "#bf616a", /* red */ -+ "#a3be8c", /* green */ -+ "#ebcb8b", /* yellow */ -+ "#81a1c1", /* blue */ -+ "#b48ead", /* magenta */ -+ "#8fbcbb", /* cyan */ -+ "#eceff4", /* white */ - - [255] = 0, - - /* more colors can be added after 255 to use with DefaultXX */ -- "#cccccc", -- "#555555", -+ "#2e3440", /* background */ -+ "#d8dee9", /* foreground */ - }; - - -@@ -116,10 +116,10 @@ static const char *colorname[] = { - * Default colors (colorname index) - * foreground, background, cursor, reverse cursor - */ --unsigned int defaultfg = 7; --unsigned int defaultbg = 0; --static unsigned int defaultcs = 256; --static unsigned int defaultrcs = 257; -+unsigned int defaultfg = 257; -+unsigned int defaultbg = 256; -+static unsigned int defaultcs = 257; -+static unsigned int defaultrcs = 256; - - /* - * Default shape of cursor --- -2.22.0 -