From b9369222173b1048bc699d8dd710c66b5634bc9a Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Wed, 23 Jun 2021 15:23:12 +0200 Subject: [PATCH 1/3] Dwm-start fix --- xsession/dwm-start | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xsession/dwm-start b/xsession/dwm-start index 4c0a8b3..2767194 100755 --- a/xsession/dwm-start +++ b/xsession/dwm-start @@ -11,7 +11,9 @@ $HOME/.config/picom/launch & # Background nitrogen --restore & -# wal -R + +# conky +$HOME/.config/conky/launch.sh & # Anti sleep xset s off & From cbaa6ac6a1da17a19fd7c479cf287ad0d738c01b Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Thu, 15 Jul 2021 04:41:59 +0200 Subject: [PATCH 2/3] Added second gap mode --- src/config.h | 3 ++- src/dwm.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/config.h b/src/config.h index 573e17b..8f4c40c 100644 --- a/src/config.h +++ b/src/config.h @@ -3,7 +3,8 @@ /* appearance */ static const unsigned int borderpx = 4; /* border pixel of windows */ static const unsigned int snap = 16; /* snap pixel (32)*/ -static const unsigned int gappx = 40; +static const unsigned int gappx = 0; +static const unsigned int gappx2 = 40; static const int showbar = 1; /* 0 means no bar */ static const int topbar = 0; /* 0 means bottom bar */ static const int usealtbar = 1; /* 1 means use non-dwm status bar */ diff --git a/src/dwm.c b/src/dwm.c index b536401..55539f4 100644 --- a/src/dwm.c +++ b/src/dwm.c @@ -1841,10 +1841,10 @@ setgaps(const Arg *arg) void togglegaps(const Arg *arg) { - if (selmon->gappx == 0) + if ((selmon->gappx == 0) || (selmon->gappx == gappx2)) selmon->gappx = gappx; else - selmon->gappx = 0; + selmon->gappx = gappx2; arrange(selmon); } From 3c11f9a54df81af911634ca54a4e8325444130a2 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Thu, 15 Jul 2021 04:44:32 +0200 Subject: [PATCH 3/3] Fixed minor logic bug --- src/dwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dwm.c b/src/dwm.c index 55539f4..e56244a 100644 --- a/src/dwm.c +++ b/src/dwm.c @@ -1841,7 +1841,7 @@ setgaps(const Arg *arg) void togglegaps(const Arg *arg) { - if ((selmon->gappx == 0) || (selmon->gappx == gappx2)) + if (selmon->gappx == gappx2) selmon->gappx = gappx; else selmon->gappx = gappx2;