sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

index.md (1904B)


      1 floatrules
      2 ==========
      3 
      4 Description
      5 -----------
      6 Inspired by [smartborders](../smartborders/).
      7 
      8 This patch adds 5 extra variables to the 'rules' array in `config.def.h`. These are:
      9 * `floatx`, `floaty`, `floatw`, `floath` (if the window has the rule `isfloating`, the window will spawn with the geometry specified by these vairables)
     10 * `floatborderpx` (border width when window is floating)
     11 
     12 Setting `floatborderpx` to `-1` (or any value less than zero) will mean that the regular border width is used.
     13 
     14 Please note that this patch needs `rm config.h` to be added to the `Makefile`.
     15 
     16 Screenshots:
     17 ![floatrules screenshot](floatrules.png)
     18 
     19 Bugfixing
     20 ---------
     21 From the original author: because I'm bad at programming and a bit lazy, the original patch had a few bugs in it.
     22 
     23 Each bugfix has its own diff file. This way, if you have installed an earlier version, you can run `diff` on your old patch and the new one.
     24 This provides an easy way for someone to see the changes and apply the updates themselves.
     25 
     26 If you have not installed an old patch, using the latest version is obviously recommended.
     27 
     28 Updates
     29 -------
     30 * 2020-11-19: Fixed a bug that caused rule-less windows to have no border (Alex Cole)
     31 * 2020-11-14: Fixed a bug that added borders to fullscreen windows (Alex Cole)
     32 * 2020-11-07: Added support for multiple monitors (Alex Cole)
     33 * 2020-03-22: Typo fix (Jakub Profota)
     34 
     35 Download
     36 --------
     37 * [dwm-floatrules-20201119-d08dd9c.diff](dwm-floatrules-20201119-d08dd9c.diff)
     38 * [dwm-floatrules-20201114-d08dd9c.diff](dwm-floatrules-20201114-d08dd9c.diff)
     39 * [dwm-floatrules-20201107-61bb8b2.diff](dwm-floatrules-20201107-61bb8b2.diff)
     40 * [dwm-floatrules-6.2.diff](dwm-floatrules-6.2.diff) (2020-03-01)
     41 
     42 Author
     43 ------
     44 * Alex Cole (original) <ajzcole at airmail.cc>
     45 * Jakub Profota
     46 
     47 The original author would like to apologise for the several bugs that originally plagued even this relatively simple patch.