Commit graph

830 commits

Author SHA1 Message Date
Bastien Dejean
f77345e92c Detail the ratio domain 2013-07-23 19:26:01 +02:00
Bastien Dejean
1bd1a79f40 Don't use brace expansion in Makefile 2013-07-21 19:31:57 +02:00
Bastien Dejean
1a37d56486 Only set msg_len once 2013-07-20 22:19:58 +02:00
Bastien Dejean
5ab0261915 Merge branch 'master' of github.com:baskerville/bspwm 2013-07-20 21:24:02 +02:00
Bastien Dejean
de1aa71a37 Fix potential leak and null pointer dereference 2013-07-20 21:22:26 +02:00
Bastien Dejean
785390f576 Merge pull request #43 from Stebalien/allow-overriding-compiler
Allow overriding compiler.
2013-07-20 11:55:41 -07:00
Steven Allen
1c140d44db Allow overriding compiler. 2013-07-20 12:07:36 -04:00
Bastien Dejean
3941e01076 Optimize the last selector 2013-07-19 10:45:55 +02:00
Bastien Dejean
7606b0bb72 Add new selector modifiers: urgent and nonurgent 2013-07-19 10:13:22 +02:00
Bastien Dejean
229c3515ba Clarify the command syntax for adding rules 2013-07-16 16:51:17 +02:00
Bastien Dejean
8f8f5d8ea4 Raise focused floating window via pointer -g focus 2013-07-15 21:18:37 +02:00
Bastien Dejean
e28581baf3 Show monitor padding information via query -T 2013-07-15 20:40:29 +02:00
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