From b501d089dcf49e8dacdb3eb235cd5ed337a2a939 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Thu, 22 Aug 2024 21:32:55 -0400 Subject: [PATCH] dwm: Add patch to remove layout indicator --- assets/dwm-remove-layout-indicator.patch | 14 ++++++++++++++ specializations/dwm.nix | 1 + 2 files changed, 15 insertions(+) create mode 100644 assets/dwm-remove-layout-indicator.patch diff --git a/assets/dwm-remove-layout-indicator.patch b/assets/dwm-remove-layout-indicator.patch new file mode 100644 index 00000000..0425f19c --- /dev/null +++ b/assets/dwm-remove-layout-indicator.patch @@ -0,0 +1,14 @@ +diff --git a/dwm.c b/dwm.c +index 67c6b2b..da9bb87 100644 +--- a/dwm.c ++++ b/dwm.c +@@ -730,9 +730,6 @@ drawbar(Monitor *m) + urg & 1 << i); + x += w; + } +- w = TEXTW(m->ltsymbol); +- drw_setscheme(drw, scheme[SchemeNorm]); +- x = drw_text(drw, x, 0, w, bh, lrpad / 2, m->ltsymbol, 0); + + if ((w = m->ww - tw - x) > bh) { + if (m->sel) { diff --git a/specializations/dwm.nix b/specializations/dwm.nix index d86971e4..72e4fdf7 100644 --- a/specializations/dwm.nix +++ b/specializations/dwm.nix @@ -205,6 +205,7 @@ in patches = [ ../assets/dwm-actualfullscreen.patch ../assets/dwm-adjacenttag.patch + ../assets/dwm-remove-layout-indicator.patch (pkgs.fetchpatch { url = "https://dwm.suckless.org/patches/hide_vacant_tags/dwm-hide_vacant_tags-6.4.diff";