From ac4269a4f28f29bad9a319993ad814830248f89a Mon Sep 17 00:00:00 2001 From: bakkeby Date: Sat, 5 Oct 2019 23:56:43 +0200 Subject: [PATCH] Adding cmdcustomize patch --- README.md | 5 ++++- dwm.c | 29 +++++++++++++++++++++++++++++ patch/cmdcustomize.c | 5 +++++ patch/cmdcustomize.h | 1 + patch/include.c | 4 ++++ patch/include.h | 4 ++++ patches.h | 5 +++++ 7 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 patch/cmdcustomize.c create mode 100644 patch/cmdcustomize.h diff --git a/README.md b/README.md index 9a81c4d..df82b38 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Refer to [https://dwm.suckless.org/](https://dwm.suckless.org/) for details on t ### Changelog: -2019-10-05 - Added killunsel, taggrid and hidevacanttags patches +2019-10-05 - Added killunsel, taggrid, hidevacanttags and cmdcustomize patches 2019-10-04 - Added maximize, movestack, monoclesymbol, noborder, tagall and tagintostack patches @@ -88,6 +88,9 @@ Refer to [https://dwm.suckless.org/](https://dwm.suckless.org/) for details on t - [cfacts](https://dwm.suckless.org/patches/cfacts/) - the cfacts patch provides the ability to assign different weights to clients in their respective stack in tiled layout + - [cmdcustomize](https://dwm.suckless.org/patches/cmdcustomize/) + - allows color attributes to be set through the command line + - [combo](https://dwm.suckless.org/patches/combo/) - allows you to select multiple tags by pressing all the right keys as a combo, e.g. hold MOD and press and hold 1 and 3 together to view those two tags diff --git a/dwm.c b/dwm.c index d1fd225..4834c97 100644 --- a/dwm.c +++ b/dwm.c @@ -3380,10 +3380,39 @@ zoom(const Arg *arg) int main(int argc, char *argv[]) { + #if CMDCUSTOMIZE + for (int i=1;i