[dwm][patches][removeboxes] add new patch - sites - public wiki contents of suckless.org
 (HTM) git clone git://git.suckless.org/sites
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) commit 9e075725aa3c37ea95ec7b0231358d0b015faf70
 (DIR) parent 1b1dcad49917acb05ab1ebce092f0425eb5aaa6c
 (HTM) Author: Jakub Skowron <jakubskowron676@gmail.com>
       Date:   Wed, 25 Jun 2025 22:06:27 +0200
       
       [dwm][patches][removeboxes] add new patch
       
       Diffstat:
         A dwm.suckless.org/patches/removebox… |      48 +++++++++++++++++++++++++++++++
         A dwm.suckless.org/patches/removebox… |       0 
         A dwm.suckless.org/patches/removebox… |       0 
         A dwm.suckless.org/patches/removebox… |      27 +++++++++++++++++++++++++++
       
       4 files changed, 75 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/dwm.suckless.org/patches/removeboxes/dwm-removeboxes-6.5.diff b/dwm.suckless.org/patches/removeboxes/dwm-removeboxes-6.5.diff
       @@ -0,0 +1,48 @@
       +From dd804ef1b7a545092ecec7268c679f34f77ff76d Mon Sep 17 00:00:00 2001
       +From: Jakub Skowron <jakubskowron676@gmail.com>
       +Date: Wed, 25 Jun 2025 18:08:44 +0200
       +Subject: [PATCH] Remove boxes on tags and floating window title
       +
       +This patch completely removes those small rectangles on active and
       +inactive tags as well as the rectangle that appears when a window
       +is in the floating layout.
       +---
       + dwm.c | 8 --------
       + 1 file changed, 8 deletions(-)
       +
       +diff --git a/dwm.c b/dwm.c
       +index 1443802..08b3767 100644
       +--- a/dwm.c
       ++++ b/dwm.c
       +@@ -698,8 +698,6 @@ void
       + drawbar(Monitor *m)
       + {
       +         int x, w, tw = 0;
       +-        int boxs = drw->fonts->h / 9;
       +-        int boxw = drw->fonts->h / 6 + 2;
       +         unsigned int i, occ = 0, urg = 0;
       +         Client *c;
       + 
       +@@ -723,10 +721,6 @@ drawbar(Monitor *m)
       +                 w = TEXTW(tags[i]);
       +                 drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeNorm]);
       +                 drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i);
       +-                if (occ & 1 << i)
       +-                        drw_rect(drw, x + boxs, boxs, boxw, boxw,
       +-                                m == selmon && selmon->sel && selmon->sel->tags & 1 << i,
       +-                                urg & 1 << i);
       +                 x += w;
       +         }
       +         w = TEXTW(m->ltsymbol);
       +@@ -737,8 +731,6 @@ drawbar(Monitor *m)
       +                 if (m->sel) {
       +                         drw_setscheme(drw, scheme[m == selmon ? SchemeSel : SchemeNorm]);
       +                         drw_text(drw, x, 0, w, bh, lrpad / 2, m->sel->name, 0);
       +-                        if (m->sel->isfloating)
       +-                                drw_rect(drw, x + boxs, boxs, boxw, boxw, m->sel->isfixed, 0);
       +                 } else {
       +                         drw_setscheme(drw, scheme[SchemeNorm]);
       +                         drw_rect(drw, x, 0, w, bh, 1, 1);
       +-- 
       +2.50.0
       +
 (DIR) diff --git a/dwm.suckless.org/patches/removeboxes/dwm-removeboxes-after_patch.png b/dwm.suckless.org/patches/removeboxes/dwm-removeboxes-after_patch.png
       Binary files differ.
 (DIR) diff --git a/dwm.suckless.org/patches/removeboxes/dwm-removeboxes-before_patch.png b/dwm.suckless.org/patches/removeboxes/dwm-removeboxes-before_patch.png
       Binary files differ.
 (DIR) diff --git a/dwm.suckless.org/patches/removeboxes/index.md b/dwm.suckless.org/patches/removeboxes/index.md
       @@ -0,0 +1,27 @@
       +removeboxes
       +===========
       +
       +Description
       +-----------
       +This patch removes boxes next to tags with windows in them as well
       +as the box indicating whether a tag has a floating window in it.
       +
       +A vanilla dwm bar looks like this (also showcasing a tag with a floating
       +window in it):
       +
       +![before applying removeboxes](dwm-removeboxes-before_patch.png)
       +
       +And this is what it looks like after removeboxes is applied:
       +
       +![after applying removeboxes](dwm-removeboxes-after_patch.png)
       +
       +The patch is best used when combined with something like [underlinetags](https://dwm.suckless.org/patches/underlinetags/),
       +but it does work nicely when used just by itself.
       +
       +Download
       +--------
       +* [dwm-removeboxes-6.5.diff](dwm-removeboxes-6.5.diff) (1.5K) (20250625)
       +
       +Authors
       +-------
       +* Jakub Skowron <jakubskowron676@gmail.com>