diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-06-03 22:20:13 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-06-03 22:20:13 +0100 |
commit | db5605a181570de82084f8a3511a8ffa700cb24c (patch) | |
tree | cbb0e198d74a45425aa3bb42ba2c032cb9c81785 /config.h | |
parent | ab70e0c0f8919ed1831ed6871d5b484910e8aeb6 (diff) | |
download | dwm-db5605a181570de82084f8a3511a8ffa700cb24c.tar.gz dwm-db5605a181570de82084f8a3511a8ffa700cb24c.tar.bz2 dwm-db5605a181570de82084f8a3511a8ffa700cb24c.zip |
gappx -> default_gaps, opengap -> optional_gaps
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 44 |
1 files changed, 22 insertions, 22 deletions
@@ -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); } |