vanitygaps
Description
Inspired by some of the functionality of i3-gaps this patch adds (inner) gaps between client windows and (outer) gaps between windows and the screen edge in a flexible manner.
Named vanitygaps as it does not provide any real functionality as such and is purely a visual eyecandy that is perhaps best suited for people looking for that certain look and feel. That said this might look great on a monitor (for monitoring purposes).
The patch provides:
- option to control all gaps in unison (like fullgaps)
- option to control inner gaps in unison (like gaps)
- option to control inner and outer gaps separately
- option to control the inner horizontal and vertical gaps separately
- option to control the outer horizontal and vertical gaps separately
- option to toggle gaps on and off
- option to reset gaps back to default
- option to show no outer gaps when there is only one window (smart gaps)
- example keyboard shortcuts to change the gaps on the fly
The example keyboard shortcuts included are:
Alt+Super+0
― toggle gaps on and offAlt+Super+Shift+0
― reset gaps back to defaultAlt+Super+h
― increase all gapsAlt+Super+l
― decrease all gapsAlt+Super+Shift+h
― increase outer gapsAlt+Super+Shift+l
― decrease outer gapsAlt+Super+Ctrl+h
― increase inner gapsAlt+Super+Ctrl+l
― decrease inner gapsAlt+y
― increase inner horizontal gapsAlt+o
― decrease inner horizontal gapsAlt+Ctrl+y
― increase inner vertical gapsAlt+Ctrl+o
― decrease outer vertical gapsAlt+Super+y
― increase outer horizontal gapsAlt+Super+o
― decrease outer horizontal gapsAlt+Shift+y
― increase outer vertical gapsAlt+Shift+o
― decrease outer vertical gaps
Nobody should need all of these, but they are included for demo purposes and for experimentation. Consider trimming these down to what you actually use.
NB: You may also want to disable resizehints
to get even gaps.
Download
- dwm-vanitygaps-20190508-6.2.diff (original, tile only)
- dwm-vanitygaps-20200610-f09418b.diff (original, tile only)
- dwm-vanitygaps-6.2.diff (tile, bstack, bstackhoriz, centeredmaster, centeredfloatingmaster, deck, fibonacci (dwindle, spiral), grid, nrowgrid)
- dwm-cfacts-vanitygaps-6.2.diff (as above, on top of cfacts)
- dwm-cfacts-vanitygaps-6.2_combo.diff (as above, cfacts + vanitygaps combo)
- dwm-cfacts-vanitygaps-6.4_combo.diff (as above, cfacts + vanitygaps combo)
Author
- Stein Bakkeby bakkeby@gmail.com
- Michel Boaventura michel.boaventura@protonmail.com (20200610-f09418b port)