Skip to content

Instantly share code, notes, and snippets.

View gbgabo's full-sized avatar
🌌
Discovering JS/TS

Gabriel Gaboardi gbgabo

🌌
Discovering JS/TS
View GitHub Profile
@gbgabo
gbgabo / dwm-monocle-patch.c
Last active January 23, 2023 16:28
dwm vanity gaps for monocle layout
// snippet of refactored monocle() function, to support gaps on monocle layout too
// just substitute the monocle() function located on your dwm.c file to this snippet
// this change requires vanity-gaps patch on your dwm build - https://dwm.suckless.org/patches/vanitygaps/
// disable/enable gaps and gaps controls work just like in tile layout
// credits to breakfict for this contribution: https://www.reddit.com/r/suckless/comments/m88dwg/monocle_gaps/grxs54k/?context=3
void
monocle(Monitor *m)
{
unsigned int n = 0, oe = enablegaps;