aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-06-03 22:20:13 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-06-03 22:20:13 +0100
commitdb5605a181570de82084f8a3511a8ffa700cb24c (patch)
treecbb0e198d74a45425aa3bb42ba2c032cb9c81785
parentab70e0c0f8919ed1831ed6871d5b484910e8aeb6 (diff)
downloaddwm-db5605a181570de82084f8a3511a8ffa700cb24c.tar.gz
dwm-db5605a181570de82084f8a3511a8ffa700cb24c.tar.bz2
dwm-db5605a181570de82084f8a3511a8ffa700cb24c.zip
gappx -> default_gaps, opengap -> optional_gaps
-rw-r--r--config.h44
-rw-r--r--dwm.c4
2 files changed, 24 insertions, 24 deletions
diff --git a/config.h b/config.h
index 98f5f21..7aaccc3 100644
--- a/config.h
+++ b/config.h
@@ -6,25 +6,25 @@
#define STATUSBAR "dwmblocks"
/* appearance */
-static const unsigned int borderpx = 0; /* border pixel of windows */
-static const unsigned int snap = 32; /* snap pixel */
-static const unsigned int opengap = 20; /* optional gaps between windows */
-static const unsigned int gappx = 0; /* default gaps between windows */
-static const int showbar = true; /* 0 means no bar */
-static const int topbar = 0; /* 0 means bottom bar */
-static const char *fonts[] = { "Noto Sans Mono:size=13" };
-static const char dmenufont[] = "monospace:size=9";
-static const char col_black[] = "#161616";
-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_lblue[] = "#77aafc";
-static const char col_dblue[] = "#225599";
-static const char col_lgreen[] = "#55f055";
-static const char col_dgreen[] = "#008000";
-static const char *colors[][3] = {
+static const unsigned int borderpx = 0; /* border pixel of windows */
+static const unsigned int snap = 32; /* snap pixel */
+static const unsigned int optional_gaps = 20; /* optional gaps between windows */
+static const unsigned int default_gaps = 0; /* default gaps between windows */
+static const int showbar = true; /* 0 means no bar */
+static const int topbar = 0; /* 0 means bottom bar */
+static const char *fonts[] = { "Noto Sans Mono:size=13" };
+static const char dmenufont[] = "monospace:size=9";
+static const char col_black[] = "#161616";
+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_lblue[] = "#77aafc";
+static const char col_dblue[] = "#225599";
+static const char col_lgreen[] = "#55f055";
+static const char col_dgreen[] = "#008000";
+static const char *colors[][3] = {
/* Scheme fg bg border */
[SchemeNorm] = { col_gray3, col_gray1, col_black },
[SchemeSel] = { col_gray4, col_cyan, "#230142" },
@@ -172,10 +172,10 @@ togglegaps(const Arg *arg)
if (!selmon)
return;
int *gap_size = &selmon->pertag->gaps[selmon->pertag->curtag];
- if (*gap_size == gappx)
- selmon->pertag->gaps[selmon->pertag->curtag] = opengap;
+ if (*gap_size == default_gaps)
+ selmon->pertag->gaps[selmon->pertag->curtag] = optional_gaps;
else
- selmon->pertag->gaps[selmon->pertag->curtag] = gappx;
+ selmon->pertag->gaps[selmon->pertag->curtag] = default_gaps;
arrange(selmon);
}
diff --git a/dwm.c b/dwm.c
index 01a8a97..0705c4a 100644
--- a/dwm.c
+++ b/dwm.c
@@ -294,7 +294,7 @@ struct Pertag {
unsigned int sellts[TAG_SIZE + 1]; /* selected layouts */
const Layout *ltidxs[TAG_SIZE + 1][2]; /* matrix of tags and layouts indexes */
int showbars[TAG_SIZE + 1]; /* display bar for the current tag */
- int gaps[TAG_SIZE + 1]; /* size of gaps for the current tag*/
+ int gaps[TAG_SIZE + 1]; /* current size of gaps */
};
#include "config.h"
@@ -733,7 +733,7 @@ createmon(void)
m->pertag->sellts[i] = m->sellt;
m->pertag->showbars[i] = m->showbar;
- m->pertag->gaps[i] = gappx;
+ m->pertag->gaps[i] = default_gaps;
}
return m;