sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 708948d6c0cbaa58c54313d4427b28c80045d407
parent a18052689f3bc912b63e9a65e52998b0e5e756b7
Author: GasparVardanyan <gaspar_pm@proton.me>
Date:   Tue, 24 Sep 2024 23:30:57 +0400

[dwm][patch][solarized] solarized theme for dwm

Diffstat:
Adwm.suckless.org/patches/solarized/dwm-solarized-6.5.diff | 41+++++++++++++++++++++++++++++++++++++++++
Adwm.suckless.org/patches/solarized/dwm-solarized.png | 0
Adwm.suckless.org/patches/solarized/index.md | 24++++++++++++++++++++++++
3 files changed, 65 insertions(+), 0 deletions(-)

diff --git a/dwm.suckless.org/patches/solarized/dwm-solarized-6.5.diff b/dwm.suckless.org/patches/solarized/dwm-solarized-6.5.diff @@ -0,0 +1,41 @@ +diff --git a/config.def.h b/config.def.h +index 9efa774..2e3ac31 100644 +--- a/config.def.h ++++ b/config.def.h +@@ -1,17 +1,17 @@ + /* See LICENSE file for copyright and license details. */ + + /* appearance */ +-static const unsigned int borderpx = 1; /* border pixel of windows */ ++static const unsigned int borderpx = 6; /* border pixel of windows */ + static const unsigned int snap = 32; /* snap pixel */ + 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 col_gray1[] = "#002b36"; ++static const char col_gray2[] = "#073642"; ++static const char col_gray3[] = "#839496"; ++static const char col_gray4[] = "#93a1a1"; ++static const char col_cyan[] = "#174956"; + static const char *colors[][3] = { + /* fg bg border */ + [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, +diff --git a/dwm.c b/dwm.c +index f1d86b2..2cb8b01 100644 +--- a/dwm.c ++++ b/dwm.c +@@ -736,7 +736,7 @@ drawbar(Monitor *m) + + if ((w = m->ww - tw - x) > bh) { + if (m->sel) { +- drw_setscheme(drw, scheme[m == selmon ? SchemeSel : SchemeNorm]); ++ drw_setscheme(drw, scheme[SchemeNorm]); + drw_text(drw, x, 0, w, bh, lrpad / 2, m->sel->name, 0); + if (m->sel->isfloating) + drw_rect(drw, x + boxs, boxs, boxw, boxw, m->sel->isfixed, 0); diff --git a/dwm.suckless.org/patches/solarized/dwm-solarized.png b/dwm.suckless.org/patches/solarized/dwm-solarized.png Binary files differ. diff --git a/dwm.suckless.org/patches/solarized/index.md b/dwm.suckless.org/patches/solarized/index.md @@ -0,0 +1,24 @@ +solarized +========= + +Description +----------- +Solarized color scheme for dwm. +Original Solarized colors don't satisfy the count to theme dwm, so this patch +includes some additional colors. + +![dwm-solarized screenshot](dwm-solarized.png) + +Download +-------- +* [dwm-solarized-6.5.diff](dwm-solarized-6.5.diff) + +With xtheme patch +----------------- +With [xtheme](https://dwm.suckless.org/patches/xtheme/) patches you can use this +[additional setup](https://gitlab.com/GasparVardanyan/themes/-/blob/master/solarized-dark.xdefaults?ref_type=heads) to solarize dwm, st, dmenu and tabbed together. + +Authors +------- +* [Ethan Schoonover](https://ethanschoonover.com/) (the original color palette) +* [Gaspar Vardanyan](https://gasparvardanyan.github.io/) (dwm theme)