Commit graph

618 commits

Author SHA1 Message Date
Bastien Dejean
44414046b9 Don't raise windows via focus_follows_pointer 2013-07-15 20:28:28 +02:00
Bastien Dejean
d99cf5fdb6 Merge pull request #39 from Stebalien/presel-modifier
Presel modifier
2013-07-14 14:20:17 -07:00
Bastien Dejean
df85ef74a8 Merge pull request #42 from Stebalien/eat-padding-arguments
Eat padding arguments.
2013-07-14 14:17:19 -07:00
Steven Allen
04919868b9 Eat padding arguments. 2013-07-14 16:45:13 -04:00
Steven Allen
d892925e51 Document mode modifier. 2013-07-14 15:48:08 -04:00
Steven Allen
a61f4a32ab Add mode modifier
Allows selecting windows based on their mode (manual/automatic).  This
is useful for duplicating the old shift-can-be-transplant behavior.

    # Usage: squish DIR
    squish() {
        dir=$1
        bspc window -w ${dir}.manual || bspc window -s ${dir}
    }
2013-07-14 15:48:08 -04:00
Bastien Dejean
74deafbf77 Remove the *_padding settings
Setting and getting the monitor padding is now handled by the `-p`
option of the monitor command.
2013-07-14 21:29:30 +02:00
Bastien Dejean
84e7ef3f4d Merge pull request #40 from Stebalien/fix-command-no-args
Don't assume command arguments.
2013-07-14 11:41:36 -07:00
Steven Allen
4783c03bd1 Don't assume command arguments. 2013-07-14 12:24:43 -04:00
Bastien Dejean
65dda6aa61 Use '--' as first argument for the set built-in
That's what dash's manual specifies.
2013-07-14 14:15:36 +02:00
Bastien Dejean
1ec141fecf Don't skip matching monitors 2013-07-14 11:09:17 +02:00
Bastien Dejean
3c037213be Merge pull request #38 from Stebalien/fix-segfaults
Don't segfault.
2013-07-14 00:56:45 -07:00
Steven Allen
87fc178945 Don't segfault.
1. Pass the correct desktop when checking if the focused desktop matches.
2. Don't assume that a last desktop exists.
2. Don't assume that a last monitor exists.
2013-07-13 18:21:16 -04:00
Bastien Dejean
e865e656ec Merge remote-tracking branch 'stebalien/apply-modifiers-to-everything' 2013-07-13 22:57:09 +02:00
Steven Allen
df89d390ec Apply modifiers to all objects
Window:
 * cycle                - no change
 * direction            - only consider matching nodes
 * last                 - walk history
 * focused              - match or NULL
 * biggest              - find biggest matching

Desktop:
 * cycle                - no change
 * focused              - match or NULL
 * last                 - match or NULL

Monitor:
 * cycle                - no change
 * direction            - only consider matching nodes
 * last                 - match or NULL
 * focused              - match or NULL
2013-07-13 16:40:37 -04:00
Bastien Dejean
587511528a Remove focus_by_distance from the completions 2013-07-13 22:34:43 +02:00
Bastien Dejean
209784dfd0 Merge pull request #36 from Stebalien/fix-monitor-selection
Call `monitor_from_desc` in `monitor -f <mon>`
2013-07-13 13:31:27 -07:00
Bastien Dejean
64cde67dc2 Remove setting: focus_by_distance
The removal is motivated by the following example:

+-------+-------+
|       |       |
|       |   b   |
|       |       |
|       |_______|
|   a   |       |
|   *   |   c   |
|       |       |
|       |_______|
|       |       |
|       |   d   |
|       |       |
+-------+-------+

Bellow is a summary of the number of steps required to reach *b*, *c* and *d* with *a* as a starting point with the associated mean and variance:

focus_by_distance         steps           mean         variance
---------------------------------------------------------------
  false                   1, 2, 3           2            2/3
  true                    2, 1, 2          5/3           2/9
2013-07-13 22:23:13 +02:00
Steven Allen
a782c1e927 Call monitor_from_desc in monitor -f <mon> 2013-07-13 16:17:59 -04:00
Bastien Dejean
84ae1acab1 Fix small typo 2013-07-13 10:31:14 +02:00
Bastien Dejean
57d4f1b00a Merge pull request #35 from Stebalien/expand-selector-documentation
Expand selector documentation
2013-07-13 01:25:32 -07:00
Bastien Dejean
86082e557d Merge pull request #34 from Stebalien/fixup-control-flags
Remove `<file_path>` arguments from control flags.
2013-07-13 01:24:54 -07:00
Bastien Dejean
1f83706ab5 Don't transplant when swapping
The new syntax provides a separate transplantation option.
2013-07-13 09:40:19 +02:00
Bastien Dejean
7073f88479 Remove setting: monitor_focus_fallback
“There's only one way to do it.”

And a window selection shall always return a node.
2013-07-13 09:32:38 +02:00
Steven Allen
fd8c22ab1d Expand selector documentation.
Instead of simply listing selectors, describe how they work explicitly.
2013-07-12 23:04:50 -04:00
Steven Allen
474d344348 Expand single-use definitions
Replace all single-use documentation constants with their actual values.
This makes the documentation easier to follow (less cross-referencing).
2013-07-12 23:01:05 -04:00
Steven Allen
2187f67308 Remove <file_path> arguments from control flags.
Neither `--adopt-orphans` nor `--put-status` should have arguments.
2013-07-12 20:36:09 -04:00
Bastien Dejean
6110b14279 Refocus the focused node in transplant_node 2013-07-12 23:17:32 +02:00
Bastien Dejean
d6b09a3ddf Start writing miscellaneous documentation 2013-07-12 23:03:31 +02:00
Bastien Dejean
8da257e2e8 Finish updating examples for the new syntax 2013-07-12 23:02:39 +02:00
Bastien Dejean
83a17bb63f Don't alter focus when transplanting nodes 2013-07-12 22:37:57 +02:00
Bastien Dejean
9e791903f9 Use the standard abs function 2013-07-12 22:27:09 +02:00
Bastien Dejean
8ff7c3ee47 Prevent focus change due to pointer jitter 2013-07-12 22:15:18 +02:00
Bastien Dejean
8fd8521322 Rewrite message handling
The new message syntax:
- Provides 10 commands instead of 60.
- Allows multiple actions to be applied in one call.

The client now returns an non zero exit code when a message fails.

The `is_adjacent` function now handles vacant nodes.
2013-07-12 21:52:02 +02:00
Bastien Dejean
cd1656d9bc Indicate emphasis via the apostrophe character 2013-07-05 14:23:44 +02:00
Bastien Dejean
7cb638e1d4 Follow nodes transfered via shift 2013-07-05 12:30:39 +02:00
Bastien Dejean
df7d763c75 Refresh TODO list 2013-07-05 09:54:40 +02:00
Bastien Dejean
d7e364d183 Don't try to send/drop a NULL node 2013-07-04 12:20:40 +02:00
Bastien Dejean
16e73b6342 New setting: auto_cancel 2013-07-04 12:14:47 +02:00
Bastien Dejean
714fb8d504 Remove message: ungrab_pointer
The above message was only needed for ending the `move` pointer action
on a floating window. It rendered the `move` pointer action finicky
because the floating rectangle of the floating windows was not updated
in real time.
2013-07-04 11:04:28 +02:00
Bastien Dejean
3059978fc1 Add new contributor 2013-07-03 09:25:27 +02:00
Bastien Dejean
addd537eb8 Prevent node transplantation for circulate 2013-07-02 21:33:33 +02:00
Bastien Dejean
ef75200fa2 Initialize status FIFO pointer 2013-07-02 15:18:19 +02:00
Bastien Dejean
0ec9e15d6d Reset stacking client list whenever appropriate 2013-06-30 22:02:57 +02:00
Bastien Dejean
0561e9075a Handle _NET_WM_DESKTOP client message 2013-06-30 14:47:54 +02:00
Bastien Dejean
e8b5ca6de8 Merge pull request #31 from Stebalien/arrange-after-kill
Arrange after killing a window
2013-06-30 04:56:19 -07:00
Bastien Dejean
bbfa56397b Merge pull request #30 from Stebalien/mention-fence_ratio-argument
Document the fence_ratio RATIO argument
2013-06-30 04:54:51 -07:00
Bastien Dejean
82d1255cd0 Merge pull request #29 from Stebalien/check-for-fence-ratio
Check to make sure the fence ratio is specified
2013-06-30 04:54:22 -07:00
Steven Allen
772da4dc5d Arrange after killing a window
When a window is killed, the unmap event is never fired leaving a hole
in the layout. This commit closes that hole by manually calling arrange
after killing.
2013-06-29 21:01:23 -04:00
Steven Allen
0e26278308 Document the fence_ratio RATIO argument
The documentation was missing the RATIO argument to fence_ratio.
2013-06-29 20:32:56 -04:00