Implement single_window_ratio
This is a new config option that allows the user to set the width ratio when only a single window is tiled and visible. The main idea is that, on ultrawides, a single window taking the full width could be ugly. With this new config, you can make the window take a smaller width. I also renamed consts to snake_case instead of SCREAMING_CASE and fixed a bug where the default primary_count and primary_ratio weren't updated on config reload.
This commit is contained in:
parent
07794019dc
commit
b921751100
6 changed files with 74 additions and 10 deletions
|
|
@ -4,6 +4,11 @@ attach_mode top
|
|||
primary_count 1
|
||||
// Proportion of output width taken by the primary stack
|
||||
primary_ratio 0.55
|
||||
// Proportion of output width taken by a window if it's the only visible tiled window
|
||||
// This is intended to be useful for ultrawides where a very wide window might not look very nice
|
||||
// When this is < 1.0 and only one window is being tiled, the window will have width
|
||||
// output_width * single_window_ratio and be centered on the output
|
||||
single_window_ratio 0.70
|
||||
// Whether mousing over a new window should move focus
|
||||
focus_follows_pointer #true
|
||||
// Whether the focus should warp to the center of newly-focused windows
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue