sites

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

index.md (2213B)


      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 \[since dwm-floatrules-20210801-138b405.diff\]:  
     17 Setting any of `floatx`, `floaty`, `floatw`, `floath`  to `-1` (or any value less than zero) will mean that the geometry parameter should not be overwritten.
     18 
     19 Screenshots:
     20 ![floatrules screenshot](floatrules.png)
     21 
     22 Bugfixing
     23 ---------
     24 From the original author: because I'm bad at programming and a bit lazy, the original patch had a few bugs in it.
     25 
     26 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.
     27 This provides an easy way for someone to see the changes and apply the updates themselves.
     28 
     29 If you have not installed an old patch, using the latest version is obviously recommended.
     30 
     31 Updates
     32 -------
     33 * 2020-11-19: Fixed a bug that caused rule-less windows to have no border (Alex Cole)
     34 * 2020-11-14: Fixed a bug that added borders to fullscreen windows (Alex Cole)
     35 * 2020-11-07: Added support for multiple monitors (Alex Cole)
     36 * 2020-03-22: Typo fix (Jakub Profota)
     37 
     38 Download
     39 --------
     40 * [dwm-floatrules-20210801-138b405.diff](dwm-floatrules-20210801-138b405.diff)
     41 * [dwm-floatrules-20201119-d08dd9c.diff](dwm-floatrules-20201119-d08dd9c.diff)
     42 * [dwm-floatrules-20201114-d08dd9c.diff](dwm-floatrules-20201114-d08dd9c.diff)
     43 * [dwm-floatrules-20201107-61bb8b2.diff](dwm-floatrules-20201107-61bb8b2.diff)
     44 * [dwm-floatrules-6.2.diff](dwm-floatrules-6.2.diff) (2020-03-01)
     45 
     46 Author
     47 ------
     48 * Alex Cole (original) <ajzcole at airmail.cc>
     49 * Jakub Profota
     50 * Natanael J Rabello
     51 
     52 The original author would like to apologise for the several bugs that originally plagued even this relatively simple patch.