Colors + work scratchpad.

This commit is contained in:
Bartek Stalewski 2022-03-07 18:57:13 +01:00
parent a85fe068bd
commit f9fe3327a0
7 changed files with 21 additions and 20 deletions

View file

@ -1,7 +1,7 @@
/* See LICENSE file for copyright and license details. */
/* appearance */
static const unsigned int borderpx = 5; /* border pixel of windows */
static const unsigned int borderpx = 7; /* border pixel of windows */
static const int startwithgaps = 1; /* 1 means gaps are used by default */
static const unsigned int gappx = 15; /* default gap between windows in pixels */
static const unsigned int snap = 32; /* snap pixel */
@ -18,9 +18,9 @@ static const char normfgcolor[] = "#bbbbbb";
static const char col_fg[] = "#161616";
static const char col_bg[] = "#c7c7c7";
static const char col_bd[] = "#161616";
static const char col_fg_sel[] = "#161616";
static const char col_bg_sel[] = "#00bdff";
static const char col_bd_sel[] = "#ffffff";
static const char col_fg_sel[] = "#ffffff";
static const char col_bg_sel[] = "#005577";
static const char col_bd_sel[] = "#005577";
static const char *colors[][3] = {
/* fg bg border */
[SchemeNorm] = { col_fg, col_bg, col_bd },
@ -32,9 +32,11 @@ typedef struct {
const void *cmd;
} Sp;
const char *spcmd1[] = {"st", "-n", "spterm", "-g", "120x34", NULL };
const char *spcmd2[] = {"st", "-n", "spwork", "-g", "120x34", NULL };
static Sp scratchpads[] = {
/* name cmd */
{"spterm", spcmd1},
{"spwork", spcmd2},
};
/* tagging */
@ -53,6 +55,7 @@ static const Rule rules[] = {
{ NULL, "mutt", NULL, 1 << 3, 0, 1, 1, -1 },
{ NULL, NULL, "Event Tester", 0, 0, 0, 1, -1 }, /* xev */
{ NULL, "spterm", NULL, SPTAG(0), 1, 1, 0, -1 },
{ NULL, "spwork", NULL, SPTAG(1), 1, 1, 0, -1 },
};
/* layout(s) */
@ -83,9 +86,6 @@ static const Layout layouts[] = {
/* helper for spawning shell commands in the pre dwm-5.0 fashion */
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
/* commands */
static const char *termcmd[] = { "st", NULL };
#include <X11/XF86keysym.h>
static Key keys[] = {
@ -103,13 +103,14 @@ static Key keys[] = {
/* apps n'shit */
//{ MODKEY, XK_Return, spawn, {.v = termcmd } },
{ MODKEY, XK_Return, spawn, SHCMD("BROWSER=firefox st") },
{ SHTKEY, XK_Return, spawn, SHCMD("BROWSER=workfx st -n f_work") },
{ SHTKEY, XK_Return, spawn, SHCMD("BROWSER=workfx st -n stwork") },
{ MODKEY, XK_space, spawn, SHCMD("dmenu_run -c -i -l 20") },
{ MODKEY, XK_i, spawn, SHCMD("scrot -f -s 'scrot_%Y-%m-%d_%H-%M-%S_%s.png'") },
{ SHTKEY, XK_i, spawn, SHCMD("scrot 'scrot_%Y-%m-%d_%H-%M-%S_%s.png'") },
{ MODKEY, XK_m, spawn, SHCMD("pgrep -x neomutt > /dev/null || st -n mutt -e neomutt") },
{ MODKEY, XK_q, killclient, {0} },
{ MODKEY, XK_e, togglescratch, {.ui = 0 } },
{ SHTKEY, XK_e, togglescratch, {.ui = 1 } },
/* service controls */
{ CTRKEY, XK_a, spawn, SHCMD("dmenu-audio") },
{ CTRKEY, XK_b, spawn, SHCMD("dmenu-bluetooth") },