This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |