Commit graph

1322 commits

Author SHA1 Message Date
Bastien Dejean
2120dc366d Don't add a monitor without desktops 2016-02-23 21:16:46 +01:00
Bastien Dejean
ed76b1f8a7 Use the term DESKTOP_SEL consistently 2016-02-22 20:47:57 +01:00
Bastien Dejean
21f92abb46 Don't try to use a pointer after freeing it 2016-02-12 22:59:37 +01:00
Bastien Dejean
4402b6bae6 Don't try to guess the window rectangle
Fixes #394.
2016-02-12 22:49:06 +01:00
Bastien Dejean
b8951ba11b Don't generate redundant events in apply_layout
Fixes #393.
2016-02-11 18:37:48 +01:00
Bastien Dejean
b973353a7d Add event: monitor_swap 2016-02-01 11:46:03 +01:00
Bastien Dejean
b1d96531c4 Add global setting: *paddingless_monocle*
Fixes #365.
2016-01-10 18:29:51 +01:00
Bastien Dejean
74166b039b Handle non-leaf nodes in nearest_from_distance
Fixes #363.
2016-01-07 10:18:32 +01:00
Bastien Dejean
eb1cae3128 Fix comment 2016-01-04 15:21:03 +01:00
Bastien Dejean
a0aa6dd1fa Make the window ID printf format consistent
Fixes #361.
2016-01-04 15:17:47 +01:00
Nathan Isom
f53950fd39 window --> node 2016-01-03 17:57:40 -06:00
Bastien Dejean
f382bbafd8 Fix misinterpreted asterisk in rule syntax 2016-01-02 11:31:46 +01:00
Bastien Dejean
5a9c710219 Only use characters from the ASCII charset 2016-01-02 11:16:59 +01:00
Bastien Dejean
c7364e0705 Document the optional tilde character 2016-01-02 11:13:30 +01:00
Bastien Dejean
dcc13f7e56 Skip unmapped windows in query_pointer
Fixes #353.
2015-12-31 19:08:35 +01:00
Bastien Dejean
2db4613ac2 Restore primary monitor in restore_tree 2015-12-31 12:34:24 +01:00
Bastien Dejean
18d90521f3 Don't try to restore the state from zero tokens
Fixes #352.
2015-12-31 12:06:59 +01:00
Bastien Dejean
a8c2468968 Add the --rectangle command the *monitor* domain 2015-12-30 11:36:14 +01:00
Bastien Dejean
1fe2b4179a Update TODO 2015-12-29 20:21:42 +01:00
Bastien Dejean
44c5084f99 Don't needlessly call *cat* in panel example
Fixes #349.
2015-12-28 19:59:27 +01:00
Bastien Dejean
28e4fe6e9b Start parsing modifiers after the last colon
Fixes #347.
2015-12-26 21:22:24 +01:00
Bastien Dejean
4ca21ccb46 Handle preselection feedbacks in query_pointer
Fixes #341.
2015-12-23 22:21:43 +01:00
Bastien Dejean
74ce749300 Don't blindly focus monitors in pointer -g focus 2015-12-23 22:19:14 +01:00
Steven Allen
8e732d1552 Don't take gaps into account when preselecting a gapless monocle 2015-12-23 11:41:30 -08:00
Bastien Dejean
a9649b7ea7 Enable save-under for the presel feedback window 2015-12-23 19:05:05 +01:00
Bastien Dejean
aaf44a6fae Add clickable areas to the panel example 2015-12-23 12:41:56 +01:00
Bastien Dejean
ee6d28ccb3 Fix preselection cancel binding for desktops 2015-12-23 11:10:05 +01:00
Bastien Dejean
eb07d2fc06 Generalize window commands to nodes 2015-12-22 19:25:45 +01:00
Steven Allen
e434521fc3 Avoid rare memory leak.
Technically, a user could pass invalid JSON with duplicate keys to
restore and trigger a memory leak.
2015-12-20 11:29:55 -08:00
Campbell Barton
bcbee11cf1 Fix uninitialized member use
update_root is checking m->root with uninitialized memory.
2015-12-15 01:46:31 +11:00
Bastien Dejean
11ca847bf6 Fix false positives in keyeq 2015-12-13 20:46:12 +01:00
Bastien Dejean
bfb0c37c90 Handle EWMH *state* removal more carefully 2015-12-12 19:13:38 +01:00
Bastien Dejean
8486fa0f33 Use last_{state,layer} more consistently 2015-12-09 11:07:22 +01:00
Bastien Dejean
5e68419fae Revert "Simplify EWMH state toggling" 2015-12-08 20:46:54 +01:00
Bastien Dejean
0d985477c6 Fix off-by-one token pointer in restore_tree 2015-12-05 19:33:09 +01:00
Bastien Dejean
98e30c5fc2 Reject invalid modifiers 2015-11-29 18:57:52 +01:00
Bastien Dejean
8d7850a096 Remove non-significant characters from JSON output 2015-11-28 10:40:30 +01:00
Bastien Dejean
4fbd961311 Remove settings: auto_cancel and auto_alternate
auto_cancel can be emulated with:

	super + ctrl + {h,j,k,l}
		dir={left,down,up,right}; \
		cur=$(bspc query -T -w focused.!automatic | jshon -e splitDir -u 2>&-); \
		[ "$dir" = "$cur" ] && dir=cancel; \
		bspc window -p "$dir"

and auto_alternate with:

	super + {_,alt + }{1-9,0}
		kind={desktop,monitor}; \
		item="^{1-9,10}"; \
		bspc query --"$kind"s --"$kind" "$\{item\}.focused" > /dev/null && item=last; \
		bspc "$kind" -f "$item"
2015-11-26 20:13:05 +01:00
Bastien Dejean
d3166dd399 Add *focused* modifier to desktops and monitors 2015-11-26 20:07:46 +01:00
Bastien Dejean
512e9044e3 Allow modifiers on every selector 2015-11-25 13:59:56 +01:00
Bastien Dejean
f500e1b884 Packages: add Manjaro Linux 2015-11-23 18:08:08 +01:00
Bastien Dejean
ea6bee62c7 Update TODO 2015-11-23 12:20:55 +01:00
Bastien Dejean
f758829169 Regularize the layer modifiers 2015-11-23 10:40:10 +01:00
Bastien Dejean
390a6c1ee7 Update the documentation regarding query/restore 2015-11-22 22:16:17 +01:00
Bastien Dejean
ad8c102fa5 Fix num_clients restore format 2015-11-22 22:01:30 +01:00
Bastien Dejean
4bbd6842e6 Remove obsolete variable 2015-11-22 15:22:49 +01:00
Bastien Dejean
12c36bc9e2 Consolidate update_monitors
The two functions are mostly equivalent but the short version is more robust:
6d858a0fdb

Thanks to Jurica Vukadin who submitted this patch.

Fixes #321.
2015-11-22 15:03:18 +01:00
Bastien Dejean
5e9c8e068f Use JSON as the output format of query -T
It is now easy to access any attribute by piping the output of
`query -T` to a JSON extractor/filter.

E.g.:
	bspc query -T -d DESKTOP_SEL | jq -r .layout

And it also makes `restore -T` more robust.
2015-11-22 14:41:00 +01:00
Bastien Dejean
b8abebda1a Fix gcc warnings 2015-11-19 18:09:29 +01:00
Bastien Dejean
9c29c0892e Handle fullscreen state birth rotation
Fixes #319.
2015-11-19 15:08:54 +01:00