Skip to content

Commit 32b7fd9

Browse files
author
Dmitry Lavnikevich
committed
Merge branch 'master' of https://github.com/baskerville/bspwm
2 parents c50106f + 5ac163b commit 32b7fd9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+696
-270
lines changed

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# EditorConfig: https://editorconfig.org
2+
3+
# Top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
charset = utf-8
11+
indent_style = tab
12+
indent_size = 4

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ The *automatic* mode, as opposed to the *manual* mode, doesn't require any user
100100

101101
#### Longest side scheme
102102

103-
When the value of the automatic scheme is `longest_side`, the window will be attached as if the insertion point was in manual mode and the split direction was choosen based on the dimensions of the tiling rectangle and the initial polarity.
103+
When the value of the automatic scheme is `longest_side`, the window will be attached as if the insertion point was in manual mode and the split direction was chosen based on the dimensions of the tiling rectangle and the initial polarity.
104104

105105
Let's consider the following scenario, where the initial polarity is set to `second_child`:
106106

@@ -131,6 +131,10 @@ Since *1* is wide, it gets split vertically and *2* is added as *a*'s second chi
131131

132132
This leads to *Y* where we insert window *3*. *2* is tall and is therefore split horizontally. *3* is once again added as *b*'s second child.
133133

134+
#### Alternate scheme
135+
136+
When the value of the automatic scheme is `alternate`, the window will be attached as if the insertion point was in manual mode and the split direction was chosen based on the split type of the insertion point's parent and the initial polarity. If the parent is split horizontally, the insertion point will be split vertically and vice versa.
137+
134138
#### Spiral scheme
135139

136140
When the value of the automatic scheme is `spiral`, the window will *take the space* of the insertion point.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.9.5
1+
0.9.7

contrib/bash_completion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
_bspc() {
22
local commands='node desktop monitor query rule wm subscribe config quit'
33

4-
local settings='external_rules_command status_prefix normal_border_color active_border_color focused_border_color presel_feedback_color border_width window_gap top_padding right_padding bottom_padding left_padding split_ratio automatic_scheme initial_polarity directional_focus_tightness borderless_monocle gapless_monocle single_monocle pointer_motion_interval pointer_modifier pointer_action1 pointer_action2 pointer_action3 pointer_action8 pointer_action9 click_to_focus swallow_first_click focus_follows_pointer pointer_follows_focus pointer_follows_monitor mapping_events_count ignore_ewmh_focus ignore_ewmh_fullscreen center_pseudo_tiled honor_size_hints remove_disabled_monitors remove_unplugged_monitors merge_overlapping_monitors'
4+
local settings='external_rules_command status_prefix normal_border_color active_border_color focused_border_color presel_feedback_color border_width window_gap top_padding right_padding bottom_padding left_padding top_monocle_padding right_monocle_padding bottom_monocle_padding left_monocle_padding split_ratio automatic_scheme removal_adjustment initial_polarity directional_focus_tightness presel_feedback borderless_monocle gapless_monocle single_monocle pointer_motion_interval pointer_modifier pointer_action1 pointer_action2 pointer_action3 pointer_action8 pointer_action9 click_to_focus swallow_first_click focus_follows_pointer pointer_follows_focus pointer_follows_monitor mapping_events_count ignore_ewmh_focus ignore_ewmh_fullscreen ignore_ewmh_struts center_pseudo_tiled honor_size_hints remove_disabled_monitors remove_unplugged_monitors merge_overlapping_monitors'
55

66
COMPREPLY=()
77

contrib/fish_completion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ function __fish_bspc_using_command
1111
end
1212

1313
complete -f -c bspc -n '__fish_bspc_needs_command' -a 'node desktop monitor query rule wm subscribe config quit'
14-
complete -f -c bspc -n '__fish_bspc_using_command config' -a 'external_rules_command status_prefix normal_border_color active_border_color focused_border_color presel_feedback_color border_width window_gap top_padding right_padding bottom_padding left_padding split_ratio automatic_scheme initial_polarity directional_focus_tightness borderless_monocle gapless_monocle single_monocle pointer_motion_interval pointer_modifier pointer_action1 pointer_action2 pointer_action3 pointer_action8 pointer_action9 click_to_focus swallow_first_click focus_follows_pointer pointer_follows_focus pointer_follows_monitor mapping_events_count ignore_ewmh_focus ignore_ewmh_fullscreen center_pseudo_tiled honor_size_hints remove_disabled_monitors remove_unplugged_monitors merge_overlapping_monitors'
14+
complete -f -c bspc -n '__fish_bspc_using_command config' -a 'external_rules_command status_prefix normal_border_color active_border_color focused_border_color presel_feedback_color border_width window_gap top_padding right_padding bottom_padding left_padding top_monocle_padding right_monocle_padding bottom_monocle_padding left_monocle_padding split_ratio automatic_scheme removal_adjustment initial_polarity directional_focus_tightness presel_feedback borderless_monocle gapless_monocle single_monocle pointer_motion_interval pointer_modifier pointer_action1 pointer_action2 pointer_action3 pointer_action8 pointer_action9 click_to_focus swallow_first_click focus_follows_pointer pointer_follows_focus pointer_follows_monitor mapping_events_count ignore_ewmh_focus ignore_ewmh_fullscreen ignore_ewmh_struts center_pseudo_tiled honor_size_hints remove_disabled_monitors remove_unplugged_monitors merge_overlapping_monitors'

contrib/zsh_completion

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,8 @@ _bspc() {
235235
'*'{-O,--reorder-monitors}'[Reorder the list of monitors to match the given order]:*: :_bspc_query_names -- monitors -M'\
236236
'*'{-o,--adopt-orphans}'[Manage all the unmanaged windows remaining from a previous session]'\
237237
'*'{-h,--record-history}'[Enable or disable the recording of node focus history]:history:(on off)'\
238-
'*'{-g,--get-status}'[Print the current status information]'
238+
'*'{-g,--get-status}'[Print the current status information]'\
239+
'*'{-r,--restart}'[Restart the window manager]'
239240
;;
240241
(subscribe)
241242
if [[ "$words[CURRENT-1]" != (-c|--count) ]] ;then
@@ -315,9 +316,9 @@ _bspc() {
315316
;;
316317
(config)
317318
local -a {look,behaviour,input}{_bool,}
318-
look_bool=(borderless_monocle gapless_monocle)
319-
look=({normal,active,focused}_border_color {top,right,bottom,left}_padding presel_feedback_color border_width window_gap)
320-
behaviour_bool=(single_monocle ignore_ewmh_focus center_pseudo_tiled honor_size_hints remove_disabled_monitors remove_unplugged_monitors merge_overlapping_monitors)
319+
look_bool=(presel_feedback borderless_monocle gapless_monocle)
320+
look=({normal,active,focused}_border_color {top,right,bottom,left}_padding {top,right,bottom,left}_monocle_padding presel_feedback_color border_width window_gap)
321+
behaviour_bool=(single_monocle removal_adjustment ignore_ewmh_focus ignore_ewmh_struts center_pseudo_tiled honor_size_hints remove_disabled_monitors remove_unplugged_monitors merge_overlapping_monitors)
321322
behaviour=(mapping_events_count ignore_ewmh_fullscreen external_rules_command split_ratio automatic_scheme initial_polarity directional_focus_tightness status_prefix)
322323
input_bool=(swallow_first_click focus_follows_pointer pointer_follows_{focus,monitor})
323324
input=(click_to_focus pointer_motion_interval pointer_modifier pointer_action{1,2,3,8,9})

doc/CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
1+
# From 0.9.6 to 0.9.7
2+
3+
This release fixes a bug in the behavior of `single_monocle`.
4+
5+
# From 0.9.4 to 0.9.6
6+
7+
## Additions
8+
9+
- New *wm* command: `--restart`. It was already possible to restart `bspwm` without loosing the current state through `--{dump,load}-state`, but this command will also keep the existing subscribers intact.
10+
- New settings: `automatic_scheme`, `removal_adjustment`. The automatic insertion mode now provides three ways of inserting a new node: `spiral`, `longest_side` (the default) and `alternate`. Those schemes are described in the README.
11+
- New settings: `ignore_ewmh_struts`, `presel_feedback`, `{top,right,bottom,left}_monocle_padding`.
12+
- New node descriptor: `smallest`.
13+
- New desktop modifier: `active`.
14+
15+
## Changes
16+
17+
- The `focused` and `active` modifiers now mean the same thing across every object.
18+
- Fullscreen windows are no longer sent to the `above` layer. Within the same layer, fullscreen windows are now above floating windows. If you want a floating window to be above a fullscreen window, you'll need to rely on layers.
19+
- Pseudo-tiled windows now shrink automatically.
20+
21+
## Removals
22+
23+
- The `paddingless_monocle` setting was removed (and subsumed). The effect of `paddingless_monocle` can now be achieved with:
24+
```shell
25+
for side in top right bottom left; do
26+
bspc config ${side}_monocle_padding -$(bspc config ${side}_padding)
27+
done
28+
```
29+
130
# From 0.9.3 to 0.9.4
231

332
## Changes

doc/CONTRIBUTING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,14 @@ I follow the [Linux Coding Style][4] with the following variations:
1717
- [Indent with tabs, align with spaces][5].
1818
- Always use braces when using control structures.
1919

20+
An [EditorConfig][6] is included for convinience.
21+
2022
[1]: https://www.bell-labs.com/usr/dmr/www/cbook/
2123
[2]: https://xcb.freedesktop.org/tutorial/
2224
[3]: http://git-scm.com/documentation
2325
[4]: https://www.kernel.org/doc/Documentation/process/coding-style.rst
2426
[5]: http://lea.verou.me/2012/01/why-tabs-are-clearly-superior/
27+
[6]: https://editorconfig.org
2528

2629
## Donations
2730

0 commit comments

Comments
 (0)