Switch to gruvbox and add my dotfiles
This commit is contained in:
parent
1813e06ba5
commit
76ad418a06
18 changed files with 206 additions and 232 deletions
|
@ -1,44 +1,25 @@
|
||||||
/* See LICENSE file for copyright and license details. */
|
/* See LICENSE file for copyright and license details. */
|
||||||
/* Default settings; can be overriden by command line. */
|
/* Default settings; can be overriden by command line. */
|
||||||
|
|
||||||
// !! TO SEE THE COLORS, PLEASE REFER TO https://www.nordtheme.com/docs/colors-and-palettes
|
// gruvbox
|
||||||
|
static const char col_gruvbox0_hard[] = "#1d2021"; // Background (black)
|
||||||
|
static const char col_gruvbox0_medium[] = "#282828";
|
||||||
|
static const char col_gruvbox0_soft[] = "#32302f";
|
||||||
|
|
||||||
// Polar Night
|
static const char col_gruvbox7[] = "#a89984"; // White
|
||||||
static const char col_nord0[] = "#2e3440";
|
static const char col_gruvbox8[] = "#928374";
|
||||||
static const char col_nord1[] = "#3b4252";
|
static const char col_gruvbox15[] = "#ebdbb2"; // White
|
||||||
static const char col_nord2[] = "#434c5e";
|
|
||||||
static const char col_nord3[] = "#4c566a";
|
|
||||||
|
|
||||||
// Snow Storm
|
|
||||||
static const char col_nord4[] = "#d8dee9";
|
|
||||||
static const char col_nord5[] = "#e5e9f0";
|
|
||||||
static const char col_nord6[] = "#eceff4";
|
|
||||||
|
|
||||||
// Frost
|
|
||||||
static const char col_nord7[] = "#8fbcbb";
|
|
||||||
static const char col_nord8[] = "#88c0d0";
|
|
||||||
static const char col_nord9[] = "#81a1c1";
|
|
||||||
static const char col_nord10[] = "#5e81ac";
|
|
||||||
|
|
||||||
// Aurora
|
|
||||||
static const char col_nord11[] = "#bf616a";
|
|
||||||
static const char col_nord12[] = "#d08770";
|
|
||||||
static const char col_nord13[] = "#ebcb8b";
|
|
||||||
static const char col_nord14[] = "#a3be8c";
|
|
||||||
static const char col_nord15[] = "#b48ead";
|
|
||||||
|
|
||||||
static const char col_nord15_light[] = "#8e5783";
|
|
||||||
|
|
||||||
static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */
|
static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */
|
||||||
/* -fn option overrides fonts[0]; default X11 font or font set */
|
/* -fn option overrides fonts[0]; default X11 font or font set */
|
||||||
static const char *fonts[] = {
|
static const char *fonts[] = {
|
||||||
"monospace:size=12"
|
"monospace:size=10"
|
||||||
};
|
};
|
||||||
static const char *prompt = NULL; /* -p option; prompt to the left of input field */
|
static const char *prompt = NULL; /* -p option; prompt to the left of input field */
|
||||||
static const char *colors[SchemeLast][2] = {
|
static const char *colors[SchemeLast][2] = {
|
||||||
/* fg bg */
|
/* fg bg */
|
||||||
[SchemeNorm] = { col_nord5, col_nord0 },
|
[SchemeNorm] = { col_gruvbox7, col_gruvbox0_hard },
|
||||||
[SchemeSel] = { col_nord6, col_nord3 },
|
[SchemeSel] = { col_gruvbox15, col_gruvbox0_medium },
|
||||||
[SchemeOut] = { "#000000", "#00ffff" },
|
[SchemeOut] = { "#000000", "#00ffff" },
|
||||||
};
|
};
|
||||||
/* -l option; if nonzero, dmenu uses vertical list with given number of lines */
|
/* -l option; if nonzero, dmenu uses vertical list with given number of lines */
|
||||||
|
|
|
@ -1,44 +1,25 @@
|
||||||
/* See LICENSE file for copyright and license details. */
|
/* See LICENSE file for copyright and license details. */
|
||||||
/* Default settings; can be overriden by command line. */
|
/* Default settings; can be overriden by command line. */
|
||||||
|
|
||||||
// !! TO SEE THE COLORS, PLEASE REFER TO https://www.nordtheme.com/docs/colors-and-palettes
|
// gruvbox
|
||||||
|
static const char col_gruvbox0_hard[] = "#1d2021"; // Background (black)
|
||||||
|
static const char col_gruvbox0_medium[] = "#282828";
|
||||||
|
static const char col_gruvbox0_soft[] = "#32302f";
|
||||||
|
|
||||||
// Polar Night
|
static const char col_gruvbox7[] = "#a89984"; // White
|
||||||
static const char col_nord0[] = "#2e3440";
|
static const char col_gruvbox8[] = "#928374";
|
||||||
static const char col_nord1[] = "#3b4252";
|
static const char col_gruvbox15[] = "#ebdbb2"; // White
|
||||||
static const char col_nord2[] = "#434c5e";
|
|
||||||
static const char col_nord3[] = "#4c566a";
|
|
||||||
|
|
||||||
// Snow Storm
|
|
||||||
static const char col_nord4[] = "#d8dee9";
|
|
||||||
static const char col_nord5[] = "#e5e9f0";
|
|
||||||
static const char col_nord6[] = "#eceff4";
|
|
||||||
|
|
||||||
// Frost
|
|
||||||
static const char col_nord7[] = "#8fbcbb";
|
|
||||||
static const char col_nord8[] = "#88c0d0";
|
|
||||||
static const char col_nord9[] = "#81a1c1";
|
|
||||||
static const char col_nord10[] = "#5e81ac";
|
|
||||||
|
|
||||||
// Aurora
|
|
||||||
static const char col_nord11[] = "#bf616a";
|
|
||||||
static const char col_nord12[] = "#d08770";
|
|
||||||
static const char col_nord13[] = "#ebcb8b";
|
|
||||||
static const char col_nord14[] = "#a3be8c";
|
|
||||||
static const char col_nord15[] = "#b48ead";
|
|
||||||
|
|
||||||
static const char col_nord15_light[] = "#8e5783";
|
|
||||||
|
|
||||||
static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */
|
static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */
|
||||||
/* -fn option overrides fonts[0]; default X11 font or font set */
|
/* -fn option overrides fonts[0]; default X11 font or font set */
|
||||||
static const char *fonts[] = {
|
static const char *fonts[] = {
|
||||||
"monospace:size=12"
|
"monospace:size=10"
|
||||||
};
|
};
|
||||||
static const char *prompt = NULL; /* -p option; prompt to the left of input field */
|
static const char *prompt = NULL; /* -p option; prompt to the left of input field */
|
||||||
static const char *colors[SchemeLast][2] = {
|
static const char *colors[SchemeLast][2] = {
|
||||||
/* fg bg */
|
/* fg bg */
|
||||||
[SchemeNorm] = { col_nord5, col_nord0 },
|
[SchemeNorm] = { col_gruvbox7, col_gruvbox0_hard },
|
||||||
[SchemeSel] = { col_nord6, col_nord3 },
|
[SchemeSel] = { col_gruvbox15, col_gruvbox0_medium },
|
||||||
[SchemeOut] = { "#000000", "#00ffff" },
|
[SchemeOut] = { "#000000", "#00ffff" },
|
||||||
};
|
};
|
||||||
/* -l option; if nonzero, dmenu uses vertical list with given number of lines */
|
/* -l option; if nonzero, dmenu uses vertical list with given number of lines */
|
||||||
|
|
BIN
dmenu/dmenu
BIN
dmenu/dmenu
Binary file not shown.
10
dots/.scripts/dmenucalc
Executable file
10
dots/.scripts/dmenucalc
Executable file
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
docalc() {
|
||||||
|
res=$(true | dmenu -p "calc" | bc)
|
||||||
|
[ "$res" = "" ] && exit
|
||||||
|
next=$(printf "exit\nnext" | dmenu -p "calc;res=${res}")
|
||||||
|
[ "next" = "${next}" ] && docalc || exit
|
||||||
|
}
|
||||||
|
|
||||||
|
docalc
|
3
dots/.scripts/dwmscreenshot
Executable file
3
dots/.scripts/dwmscreenshot
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
maim -s -u | xclip -selection clipboard -t image/png
|
7
dots/.scripts/dwmstatus
Executable file
7
dots/.scripts/dwmstatus
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
while :
|
||||||
|
do
|
||||||
|
xsetroot -name "$(date '+%a %d %b %H:%M')"
|
||||||
|
sleep 40
|
||||||
|
done
|
7
dots/.scripts/funccf
Executable file
7
dots/.scripts/funccf
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Recursively search my code folder for a specific folder
|
||||||
|
|
||||||
|
cf() {
|
||||||
|
cd $(find ~/code -maxdepth 4 -type d -name "$1" -print | sed 1q)
|
||||||
|
}
|
10
dots/.scripts/vmwareinit
Executable file
10
dots/.scripts/vmwareinit
Executable file
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
sudo modprobe vmmon
|
||||||
|
sudo modprobe vmw_vmci
|
||||||
|
|
||||||
|
sudo systemctl start vmware-hostd-certificates.service
|
||||||
|
sudo systemctl start vmware-hostd.service
|
||||||
|
sudo systemctl start vmware-networks-configuration.service
|
||||||
|
sudo systemctl start vmware-networks.service
|
||||||
|
sudo systemctl start vmware-usbarbitrator.service
|
7
dots/.scripts/xorgsettings
Executable file
7
dots/.scripts/xorgsettings
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Disable annoying mouse accel
|
||||||
|
xinput --set-prop 13 'libinput Accel Speed' '-1'
|
||||||
|
|
||||||
|
# Set refresh rate
|
||||||
|
xrandr --output HDMI-A-0 --mode 1920x1080 --rate 75
|
|
@ -46,9 +46,3 @@ Configuration
|
||||||
-------------
|
-------------
|
||||||
The configuration of dwm is done by creating a custom config.h
|
The configuration of dwm is done by creating a custom config.h
|
||||||
and (re)compiling the source code.
|
and (re)compiling the source code.
|
||||||
|
|
||||||
Rice-specific info
|
|
||||||
------------------
|
|
||||||
This is a custom rice.
|
|
||||||
I have modified the config and also added the following patches:
|
|
||||||
- dwm-colorbar (https://dwm.suckless.org/patches/colorbar/)
|
|
|
@ -5,60 +5,31 @@ static const unsigned int borderpx = 2; /* border pixel of windows */
|
||||||
static const unsigned int snap = 32; /* snap pixel */
|
static const unsigned int snap = 32; /* snap pixel */
|
||||||
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=10" };
|
||||||
static const char dmenufont[] = "monospace:size=12";
|
static const char dmenufont[] = "monospace:size=10";
|
||||||
|
|
||||||
static const char col_gray1[] = "#222222";
|
static const char col_gray1[] = "#222222";
|
||||||
static const char col_gray2[] = "#444444";
|
static const char col_gray2[] = "#444444";
|
||||||
static const char col_gray3[] = "#bbbbbb";
|
static const char col_gray3[] = "#bbbbbb";
|
||||||
static const char col_gray4[] = "#eeeeee";
|
static const char col_gray4[] = "#eeeeee";
|
||||||
static const char col_cyan[] = "#005577";
|
static const char col_cyan[] = "#005577";
|
||||||
|
|
||||||
// !! TO SEE THE COLORS, PLEASE REFER TO https://www.nordtheme.com/docs/colors-and-palettes
|
// gruvbox
|
||||||
|
static const char col_gruvbox0_hard[] = "#1d2021"; // Background (black)
|
||||||
|
static const char col_gruvbox0_medium[] = "#282828";
|
||||||
|
static const char col_gruvbox0_soft[] = "#32302f";
|
||||||
|
|
||||||
// Polar Night
|
static const char col_gruvbox7[] = "#a89984"; // White
|
||||||
static const char col_nord0[] = "#2e3440";
|
static const char col_gruvbox8[] = "#928374";
|
||||||
static const char col_nord1[] = "#3b4252";
|
static const char col_gruvbox15[] = "#ebdbb2"; // White
|
||||||
static const char col_nord2[] = "#434c5e";
|
|
||||||
static const char col_nord3[] = "#4c566a";
|
|
||||||
|
|
||||||
// Snow Storm
|
|
||||||
static const char col_nord4[] = "#d8dee9";
|
|
||||||
static const char col_nord5[] = "#e5e9f0";
|
|
||||||
static const char col_nord6[] = "#eceff4";
|
|
||||||
|
|
||||||
// Frost
|
|
||||||
static const char col_nord7[] = "#8fbcbb";
|
|
||||||
static const char col_nord8[] = "#88c0d0";
|
|
||||||
static const char col_nord9[] = "#81a1c1";
|
|
||||||
static const char col_nord10[] = "#5e81ac";
|
|
||||||
|
|
||||||
// Aurora
|
|
||||||
static const char col_nord11[] = "#bf616a";
|
|
||||||
static const char col_nord12[] = "#d08770";
|
|
||||||
static const char col_nord13[] = "#ebcb8b";
|
|
||||||
static const char col_nord14[] = "#a3be8c";
|
|
||||||
static const char col_nord15[] = "#b48ead";
|
|
||||||
|
|
||||||
static const char col_nord15_light[] = "#8e5783";
|
|
||||||
|
|
||||||
static const char *colors[][3] = {
|
static const char *colors[][3] = {
|
||||||
/* fg bg border */
|
/* fg bg border */
|
||||||
[SchemeNorm] = { col_nord5, col_nord0, col_nord0 },
|
[SchemeNorm] = { col_gruvbox7, col_gruvbox0_hard, col_gruvbox0_medium },
|
||||||
[SchemeSel] = { col_nord6, col_nord2, col_nord3 },
|
[SchemeSel] = { col_gruvbox15, col_gruvbox0_medium, col_gruvbox0_soft },
|
||||||
|
|
||||||
// text, bg, unused
|
|
||||||
[SchemeStatus] = { col_nord5, col_nord2, "#000000" }, // Statusbar right
|
|
||||||
|
|
||||||
[SchemeTagsSel] = { col_nord6, col_nord2, "#000000" }, // Tagbar left selected
|
|
||||||
[SchemeTagsNorm] = { col_nord5, col_nord0, "#000000" }, // Tagbar left unselected
|
|
||||||
|
|
||||||
[SchemeInfoSel] = { col_nord6, col_nord3, "#000000" }, // infobar middle selected
|
|
||||||
[SchemeInfoNorm] = { col_nord5, col_nord0, "#000000" }, // infobar middle unselected
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* tagging */
|
/* tagging */
|
||||||
static const char *tags[] = { "1>web", "2>code", "3>term", "4>files", "5>misc" };
|
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
|
||||||
|
|
||||||
static const Rule rules[] = {
|
static const Rule rules[] = {
|
||||||
/* xprop(1):
|
/* xprop(1):
|
||||||
|
@ -77,9 +48,9 @@ static const int resizehints = 0; /* 1 means respect size hints in tiled resi
|
||||||
|
|
||||||
static const Layout layouts[] = {
|
static const Layout layouts[] = {
|
||||||
/* symbol arrange function */
|
/* symbol arrange function */
|
||||||
{ "[t]", tile }, /* first entry is default */
|
{ "[]=", tile }, /* first entry is default */
|
||||||
{ "[f]", NULL }, /* no layout function means floating behavior */
|
{ "><>", NULL }, /* no layout function means floating behavior */
|
||||||
{ "[m]", monocle },
|
{ "[M]", monocle },
|
||||||
};
|
};
|
||||||
|
|
||||||
/* key definitions */
|
/* key definitions */
|
||||||
|
@ -95,15 +66,19 @@ static const Layout layouts[] = {
|
||||||
|
|
||||||
/* commands */
|
/* commands */
|
||||||
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
|
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
|
||||||
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-p", "run", NULL };
|
static const char *dmenucmd[] = { "dmenu_run", "-p", "run", "-m", dmenumon, NULL };
|
||||||
static const char *calccmd[] = { "/bin/sh", "-c", "~/.scripts/dwm/dmenu/calc", NULL };
|
|
||||||
static const char *termcmd[] = { "st", NULL };
|
static const char *termcmd[] = { "st", NULL };
|
||||||
|
|
||||||
|
static const char *screenshotscript[] = { "/bin/sh", "-c", "~/.scripts/dwmscreenshot", NULL };
|
||||||
|
static const char *calcscript[] = { "/bin/sh", "-c", "~/.scripts/dmenucalc", NULL };
|
||||||
|
|
||||||
static Key keys[] = {
|
static Key keys[] = {
|
||||||
/* modifier key function argument */
|
/* modifier key function argument */
|
||||||
|
{ MODKEY|ShiftMask, XK_o, spawn, { .v = calcscript } },
|
||||||
|
{ MODKEY|ShiftMask, XK_p, spawn, { .v = screenshotscript } },
|
||||||
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
|
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
|
||||||
{ MODKEY, XK_o, spawn, {.v = calccmd} },
|
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
|
||||||
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, //{ MODKEY, XK_b, togglebar, {0} },
|
{ MODKEY, XK_b, togglebar, {0} },
|
||||||
{ MODKEY, XK_j, focusstack, {.i = +1 } },
|
{ MODKEY, XK_j, focusstack, {.i = +1 } },
|
||||||
{ MODKEY, XK_k, focusstack, {.i = -1 } },
|
{ MODKEY, XK_k, focusstack, {.i = -1 } },
|
||||||
{ MODKEY, XK_i, incnmaster, {.i = +1 } },
|
{ MODKEY, XK_i, incnmaster, {.i = +1 } },
|
||||||
|
@ -115,7 +90,7 @@ static Key keys[] = {
|
||||||
{ MODKEY, XK_c, killclient, {0} },
|
{ MODKEY, XK_c, killclient, {0} },
|
||||||
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
|
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
|
||||||
{ MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
|
{ MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
|
||||||
//{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
|
{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
|
||||||
{ MODKEY, XK_space, setlayout, {0} },
|
{ MODKEY, XK_space, setlayout, {0} },
|
||||||
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
|
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
|
||||||
{ MODKEY, XK_0, view, {.ui = ~0 } },
|
{ MODKEY, XK_0, view, {.ui = ~0 } },
|
||||||
|
@ -129,10 +104,10 @@ static Key keys[] = {
|
||||||
TAGKEYS( XK_3, 2)
|
TAGKEYS( XK_3, 2)
|
||||||
TAGKEYS( XK_4, 3)
|
TAGKEYS( XK_4, 3)
|
||||||
TAGKEYS( XK_5, 4)
|
TAGKEYS( XK_5, 4)
|
||||||
//TAGKEYS( XK_6, 5)
|
TAGKEYS( XK_6, 5)
|
||||||
//TAGKEYS( XK_7, 6)
|
TAGKEYS( XK_7, 6)
|
||||||
//TAGKEYS( XK_8, 7)
|
TAGKEYS( XK_8, 7)
|
||||||
//TAGKEYS( XK_9, 8)
|
TAGKEYS( XK_9, 8)
|
||||||
{ MODKEY|ShiftMask, XK_q, quit, {0} },
|
{ MODKEY|ShiftMask, XK_q, quit, {0} },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ INCS = -I${X11INC} -I${FREETYPEINC}
|
||||||
LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS}
|
LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS}
|
||||||
|
|
||||||
# flags
|
# flags
|
||||||
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
|
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
|
||||||
#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
|
#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
|
||||||
CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS}
|
CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS}
|
||||||
LDFLAGS = ${LIBS}
|
LDFLAGS = ${LIBS}
|
||||||
|
|
|
@ -95,6 +95,7 @@ drw_free(Drw *drw)
|
||||||
{
|
{
|
||||||
XFreePixmap(drw->dpy, drw->drawable);
|
XFreePixmap(drw->dpy, drw->drawable);
|
||||||
XFreeGC(drw->dpy, drw->gc);
|
XFreeGC(drw->dpy, drw->gc);
|
||||||
|
drw_fontset_free(drw->fonts);
|
||||||
free(drw);
|
free(drw);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,68 +0,0 @@
|
||||||
diff --git a/config.def.h b/config.def.h
|
|
||||||
index 1c0b587..a516645 100644
|
|
||||||
--- a/config.def.h
|
|
||||||
+++ b/config.def.h
|
|
||||||
@@ -16,6 +16,11 @@ static const char *colors[][3] = {
|
|
||||||
/* fg bg border */
|
|
||||||
[SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
|
|
||||||
[SchemeSel] = { col_gray4, col_cyan, col_cyan },
|
|
||||||
+ [SchemeStatus] = { col_gray3, col_gray1, "#000000" }, // Statusbar right {text,background,not used but cannot be empty}
|
|
||||||
+ [SchemeTagsSel] = { col_gray4, col_cyan, "#000000" }, // Tagbar left selected {text,background,not used but cannot be empty}
|
|
||||||
+ [SchemeTagsNorm] = { col_gray3, col_gray1, "#000000" }, // Tagbar left unselected {text,background,not used but cannot be empty}
|
|
||||||
+ [SchemeInfoSel] = { col_gray4, col_cyan, "#000000" }, // infobar middle selected {text,background,not used but cannot be empty}
|
|
||||||
+ [SchemeInfoNorm] = { col_gray3, col_gray1, "#000000" }, // infobar middle unselected {text,background,not used but cannot be empty}
|
|
||||||
};
|
|
||||||
|
|
||||||
/* tagging */
|
|
||||||
diff --git a/dwm.c b/dwm.c
|
|
||||||
index 4465af1..0d1d2f7 100644
|
|
||||||
--- a/dwm.c
|
|
||||||
+++ b/dwm.c
|
|
||||||
@@ -59,7 +59,7 @@
|
|
||||||
|
|
||||||
/* enums */
|
|
||||||
enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */
|
|
||||||
-enum { SchemeNorm, SchemeSel }; /* color schemes */
|
|
||||||
+enum { SchemeNorm, SchemeSel, SchemeStatus, SchemeTagsSel, SchemeTagsNorm, SchemeInfoSel, SchemeInfoNorm }; /* color schemes */
|
|
||||||
enum { NetSupported, NetWMName, NetWMState, NetWMCheck,
|
|
||||||
NetWMFullscreen, NetActiveWindow, NetWMWindowType,
|
|
||||||
NetWMWindowTypeDialog, NetClientList, NetLast }; /* EWMH atoms */
|
|
||||||
@@ -703,7 +703,7 @@ drawbar(Monitor *m)
|
|
||||||
|
|
||||||
/* draw status first so it can be overdrawn by tags later */
|
|
||||||
if (m == selmon) { /* status is only drawn on selected monitor */
|
|
||||||
- drw_setscheme(drw, scheme[SchemeNorm]);
|
|
||||||
+ drw_setscheme(drw, scheme[SchemeStatus]);
|
|
||||||
sw = TEXTW(stext) - lrpad + 2; /* 2px right padding */
|
|
||||||
drw_text(drw, m->ww - sw, 0, sw, bh, 0, stext, 0);
|
|
||||||
}
|
|
||||||
@@ -716,7 +716,7 @@ drawbar(Monitor *m)
|
|
||||||
x = 0;
|
|
||||||
for (i = 0; i < LENGTH(tags); i++) {
|
|
||||||
w = TEXTW(tags[i]);
|
|
||||||
- drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeNorm]);
|
|
||||||
+ drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeTagsSel : SchemeTagsNorm]);
|
|
||||||
drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i);
|
|
||||||
if (occ & 1 << i)
|
|
||||||
drw_rect(drw, x + boxs, boxs, boxw, boxw,
|
|
||||||
@@ -725,17 +725,17 @@ drawbar(Monitor *m)
|
|
||||||
x += w;
|
|
||||||
}
|
|
||||||
w = blw = TEXTW(m->ltsymbol);
|
|
||||||
- drw_setscheme(drw, scheme[SchemeNorm]);
|
|
||||||
+ drw_setscheme(drw, scheme[SchemeTagsNorm]);
|
|
||||||
x = drw_text(drw, x, 0, w, bh, lrpad / 2, m->ltsymbol, 0);
|
|
||||||
|
|
||||||
if ((w = m->ww - sw - x) > bh) {
|
|
||||||
if (m->sel) {
|
|
||||||
- drw_setscheme(drw, scheme[m == selmon ? SchemeSel : SchemeNorm]);
|
|
||||||
+ drw_setscheme(drw, scheme[m == selmon ? SchemeInfoSel : SchemeInfoNorm]);
|
|
||||||
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);
|
|
||||||
} else {
|
|
||||||
- drw_setscheme(drw, scheme[SchemeNorm]);
|
|
||||||
+ drw_setscheme(drw, scheme[SchemeInfoNorm]);
|
|
||||||
drw_rect(drw, x, 0, w, bh, 1, 1);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -33,7 +33,7 @@ dwm draws a small border around windows to indicate the focus state.
|
||||||
.SH OPTIONS
|
.SH OPTIONS
|
||||||
.TP
|
.TP
|
||||||
.B \-v
|
.B \-v
|
||||||
prints version information to standard output, then exits.
|
prints version information to stderr, then exits.
|
||||||
.SH USAGE
|
.SH USAGE
|
||||||
.SS Status bar
|
.SS Status bar
|
||||||
.TP
|
.TP
|
||||||
|
|
27
dwm/dwm.c
27
dwm/dwm.c
|
@ -59,7 +59,7 @@
|
||||||
|
|
||||||
/* enums */
|
/* enums */
|
||||||
enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */
|
enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */
|
||||||
enum { SchemeNorm, SchemeSel, SchemeStatus, SchemeTagsSel, SchemeTagsNorm, SchemeInfoSel, SchemeInfoNorm }; /* color schemes */
|
enum { SchemeNorm, SchemeSel }; /* color schemes */
|
||||||
enum { NetSupported, NetWMName, NetWMState, NetWMCheck,
|
enum { NetSupported, NetWMName, NetWMState, NetWMCheck,
|
||||||
NetWMFullscreen, NetActiveWindow, NetWMWindowType,
|
NetWMFullscreen, NetActiveWindow, NetWMWindowType,
|
||||||
NetWMWindowTypeDialog, NetClientList, NetLast }; /* EWMH atoms */
|
NetWMWindowTypeDialog, NetClientList, NetLast }; /* EWMH atoms */
|
||||||
|
@ -169,6 +169,7 @@ static void focus(Client *c);
|
||||||
static void focusin(XEvent *e);
|
static void focusin(XEvent *e);
|
||||||
static void focusmon(const Arg *arg);
|
static void focusmon(const Arg *arg);
|
||||||
static void focusstack(const Arg *arg);
|
static void focusstack(const Arg *arg);
|
||||||
|
static Atom getatomprop(Client *c, Atom prop);
|
||||||
static int getrootptr(int *x, int *y);
|
static int getrootptr(int *x, int *y);
|
||||||
static long getstate(Window w);
|
static long getstate(Window w);
|
||||||
static int gettextprop(Window w, Atom atom, char *text, unsigned int size);
|
static int gettextprop(Window w, Atom atom, char *text, unsigned int size);
|
||||||
|
@ -439,7 +440,7 @@ buttonpress(XEvent *e)
|
||||||
arg.ui = 1 << i;
|
arg.ui = 1 << i;
|
||||||
} else if (ev->x < x + blw)
|
} else if (ev->x < x + blw)
|
||||||
click = ClkLtSymbol;
|
click = ClkLtSymbol;
|
||||||
else if (ev->x > selmon->ww - TEXTW(stext))
|
else if (ev->x > selmon->ww - (int)TEXTW(stext))
|
||||||
click = ClkStatusText;
|
click = ClkStatusText;
|
||||||
else
|
else
|
||||||
click = ClkWinTitle;
|
click = ClkWinTitle;
|
||||||
|
@ -695,7 +696,7 @@ dirtomon(int dir)
|
||||||
void
|
void
|
||||||
drawbar(Monitor *m)
|
drawbar(Monitor *m)
|
||||||
{
|
{
|
||||||
int x, w, sw = 0;
|
int x, w, tw = 0;
|
||||||
int boxs = drw->fonts->h / 9;
|
int boxs = drw->fonts->h / 9;
|
||||||
int boxw = drw->fonts->h / 6 + 2;
|
int boxw = drw->fonts->h / 6 + 2;
|
||||||
unsigned int i, occ = 0, urg = 0;
|
unsigned int i, occ = 0, urg = 0;
|
||||||
|
@ -703,9 +704,9 @@ drawbar(Monitor *m)
|
||||||
|
|
||||||
/* draw status first so it can be overdrawn by tags later */
|
/* draw status first so it can be overdrawn by tags later */
|
||||||
if (m == selmon) { /* status is only drawn on selected monitor */
|
if (m == selmon) { /* status is only drawn on selected monitor */
|
||||||
drw_setscheme(drw, scheme[SchemeStatus]);
|
drw_setscheme(drw, scheme[SchemeNorm]);
|
||||||
sw = TEXTW(stext) - lrpad + 2; /* 2px right padding */
|
tw = TEXTW(stext) - lrpad + 2; /* 2px right padding */
|
||||||
drw_text(drw, m->ww - sw, 0, sw, bh, 0, stext, 0);
|
drw_text(drw, m->ww - tw, 0, tw, bh, 0, stext, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (c = m->clients; c; c = c->next) {
|
for (c = m->clients; c; c = c->next) {
|
||||||
|
@ -716,7 +717,7 @@ drawbar(Monitor *m)
|
||||||
x = 0;
|
x = 0;
|
||||||
for (i = 0; i < LENGTH(tags); i++) {
|
for (i = 0; i < LENGTH(tags); i++) {
|
||||||
w = TEXTW(tags[i]);
|
w = TEXTW(tags[i]);
|
||||||
drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeTagsSel : SchemeTagsNorm]);
|
drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeNorm]);
|
||||||
drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i);
|
drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i);
|
||||||
if (occ & 1 << i)
|
if (occ & 1 << i)
|
||||||
drw_rect(drw, x + boxs, boxs, boxw, boxw,
|
drw_rect(drw, x + boxs, boxs, boxw, boxw,
|
||||||
|
@ -725,17 +726,17 @@ drawbar(Monitor *m)
|
||||||
x += w;
|
x += w;
|
||||||
}
|
}
|
||||||
w = blw = TEXTW(m->ltsymbol);
|
w = blw = TEXTW(m->ltsymbol);
|
||||||
drw_setscheme(drw, scheme[SchemeTagsNorm]);
|
drw_setscheme(drw, scheme[SchemeNorm]);
|
||||||
x = drw_text(drw, x, 0, w, bh, lrpad / 2, m->ltsymbol, 0);
|
x = drw_text(drw, x, 0, w, bh, lrpad / 2, m->ltsymbol, 0);
|
||||||
|
|
||||||
if ((w = m->ww - sw - x) > bh) {
|
if ((w = m->ww - tw - x) > bh) {
|
||||||
if (m->sel) {
|
if (m->sel) {
|
||||||
drw_setscheme(drw, scheme[m == selmon ? SchemeInfoSel : SchemeInfoNorm]);
|
drw_setscheme(drw, scheme[m == selmon ? SchemeSel : SchemeNorm]);
|
||||||
drw_text(drw, x, 0, w, bh, lrpad / 2, m->sel->name, 0);
|
drw_text(drw, x, 0, w, bh, lrpad / 2, m->sel->name, 0);
|
||||||
if (m->sel->isfloating)
|
if (m->sel->isfloating)
|
||||||
drw_rect(drw, x + boxs, boxs, boxw, boxw, m->sel->isfixed, 0);
|
drw_rect(drw, x + boxs, boxs, boxw, boxw, m->sel->isfixed, 0);
|
||||||
} else {
|
} else {
|
||||||
drw_setscheme(drw, scheme[SchemeInfoNorm]);
|
drw_setscheme(drw, scheme[SchemeNorm]);
|
||||||
drw_rect(drw, x, 0, w, bh, 1, 1);
|
drw_rect(drw, x, 0, w, bh, 1, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1520,7 +1521,7 @@ setmfact(const Arg *arg)
|
||||||
if (!arg || !selmon->lt[selmon->sellt]->arrange)
|
if (!arg || !selmon->lt[selmon->sellt]->arrange)
|
||||||
return;
|
return;
|
||||||
f = arg->f < 1.0 ? arg->f + selmon->mfact : arg->f - 1.0;
|
f = arg->f < 1.0 ? arg->f + selmon->mfact : arg->f - 1.0;
|
||||||
if (f < 0.1 || f > 0.9)
|
if (f < 0.05 || f > 0.95)
|
||||||
return;
|
return;
|
||||||
selmon->mfact = f;
|
selmon->mfact = f;
|
||||||
arrange(selmon);
|
arrange(selmon);
|
||||||
|
@ -1688,10 +1689,12 @@ tile(Monitor *m)
|
||||||
if (i < m->nmaster) {
|
if (i < m->nmaster) {
|
||||||
h = (m->wh - my) / (MIN(n, m->nmaster) - i);
|
h = (m->wh - my) / (MIN(n, m->nmaster) - i);
|
||||||
resize(c, m->wx, m->wy + my, mw - (2*c->bw), h - (2*c->bw), 0);
|
resize(c, m->wx, m->wy + my, mw - (2*c->bw), h - (2*c->bw), 0);
|
||||||
|
if (my + HEIGHT(c) < m->wh)
|
||||||
my += HEIGHT(c);
|
my += HEIGHT(c);
|
||||||
} else {
|
} else {
|
||||||
h = (m->wh - ty) / (n - i);
|
h = (m->wh - ty) / (n - i);
|
||||||
resize(c, m->wx + mw, m->wy + ty, m->ww - mw - (2*c->bw), h - (2*c->bw), 0);
|
resize(c, m->wx + mw, m->wy + ty, m->ww - mw - (2*c->bw), h - (2*c->bw), 0);
|
||||||
|
if (ty + HEIGHT(c) < m->wh)
|
||||||
ty += HEIGHT(c);
|
ty += HEIGHT(c);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -96,30 +96,24 @@ unsigned int tabspaces = 8;
|
||||||
/* Terminal colors (16 first used in escape sequence) */
|
/* Terminal colors (16 first used in escape sequence) */
|
||||||
static const char *colorname[] = {
|
static const char *colorname[] = {
|
||||||
/* 8 normal colors */
|
/* 8 normal colors */
|
||||||
"#3b4252", /* black */
|
[0] = "#282828", /* hard contrast: #1d2021 / soft contrast: #32302f */
|
||||||
"#bf616a", /* red */
|
[1] = "#cc241d", /* red */
|
||||||
"#a3be8c", /* green */
|
[2] = "#98971a", /* green */
|
||||||
"#ebcb8b", /* yellow */
|
[3] = "#d79921", /* yellow */
|
||||||
"#81a1c1", /* blue */
|
[4] = "#458588", /* blue */
|
||||||
"#b48ead", /* magenta */
|
[5] = "#b16286", /* magenta */
|
||||||
"#88c0d0", /* cyan */
|
[6] = "#689d6a", /* cyan */
|
||||||
"#e5e9f0", /* white */
|
[7] = "#a89984", /* white */
|
||||||
|
|
||||||
/* 8 bright colors */
|
/* 8 bright colors */
|
||||||
"#4c566a", /* black */
|
[8] = "#928374", /* black */
|
||||||
"#bf616a", /* red */
|
[9] = "#fb4934", /* red */
|
||||||
"#a3be8c", /* green */
|
[10] = "#b8bb26", /* green */
|
||||||
"#ebcb8b", /* yellow */
|
[11] = "#fabd2f", /* yellow */
|
||||||
"#81a1c1", /* blue */
|
[12] = "#83a598", /* blue */
|
||||||
"#b48ead", /* magenta */
|
[13] = "#d3869b", /* magenta */
|
||||||
"#8fbcbb", /* cyan */
|
[14] = "#8ec07c", /* cyan */
|
||||||
"#eceff4", /* white */
|
[15] = "#ebdbb2", /* white */
|
||||||
|
|
||||||
[255] = 0,
|
|
||||||
|
|
||||||
/* more colors can be added after 255 to use with DefaultXX */
|
|
||||||
"#2e3440", /* background */
|
|
||||||
"#d8dee9", /* foreground */
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -127,11 +121,10 @@ static const char *colorname[] = {
|
||||||
* Default colors (colorname index)
|
* Default colors (colorname index)
|
||||||
* foreground, background, cursor, reverse cursor
|
* foreground, background, cursor, reverse cursor
|
||||||
*/
|
*/
|
||||||
unsigned int defaultfg = 257;
|
static unsigned int defaultcs = 15;
|
||||||
unsigned int defaultbg = 256;
|
|
||||||
static unsigned int defaultcs = 257;
|
|
||||||
static unsigned int defaultrcs = 257;
|
static unsigned int defaultrcs = 257;
|
||||||
|
unsigned int defaultfg = 15;
|
||||||
|
unsigned int defaultbg = 0;
|
||||||
static const int resizehints = 0;
|
static const int resizehints = 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
70
st/st-gruvbox-dark-0.8.2.diff
Normal file
70
st/st-gruvbox-dark-0.8.2.diff
Normal file
|
@ -0,0 +1,70 @@
|
||||||
|
diff --git a/config.def.h b/config.def.h
|
||||||
|
index 877afab..6a1699f 100644
|
||||||
|
--- a/config.def.h
|
||||||
|
+++ b/config.def.h
|
||||||
|
@@ -84,41 +84,35 @@ 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] = "#282828", /* hard contrast: #1d2021 / soft contrast: #32302f */
|
||||||
|
+ [1] = "#cc241d", /* red */
|
||||||
|
+ [2] = "#98971a", /* green */
|
||||||
|
+ [3] = "#d79921", /* yellow */
|
||||||
|
+ [4] = "#458588", /* blue */
|
||||||
|
+ [5] = "#b16286", /* magenta */
|
||||||
|
+ [6] = "#689d6a", /* cyan */
|
||||||
|
+ [7] = "#a89984", /* white */
|
||||||
|
+
|
||||||
|
+ /* 8 bright colors */
|
||||||
|
+ [8] = "#928374", /* black */
|
||||||
|
+ [9] = "#fb4934", /* red */
|
||||||
|
+ [10] = "#b8bb26", /* green */
|
||||||
|
+ [11] = "#fabd2f", /* yellow */
|
||||||
|
+ [12] = "#83a598", /* blue */
|
||||||
|
+ [13] = "#d3869b", /* magenta */
|
||||||
|
+ [14] = "#8ec07c", /* cyan */
|
||||||
|
+ [15] = "#ebdbb2", /* white */
|
||||||
|
+};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 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 = 15;
|
||||||
|
+unsigned int defaultbg = 0;
|
||||||
|
+static unsigned int defaultcs = 15;
|
||||||
|
static unsigned int defaultrcs = 257;
|
||||||
|
|
||||||
|
/*
|
Loading…
Reference in a new issue