]> git.sur5r.net Git - i3/i3/commit
Implement new criterion 'workspace'. 1771/head
authorIngo Bürk <ingo.buerk@tngtech.com>
Mon, 29 Jun 2015 21:58:48 +0000 (23:58 +0200)
committerIngo Bürk <ingo.buerk@tngtech.com>
Tue, 30 Jun 2015 18:53:52 +0000 (20:53 +0200)
commitbe406d036dfa584d06f736a152ba3d74d6ce6301
tree74fd9148b777995d866f5d6e0e96b1a5ced814ef
parent8df7e4ecb9dff2781b3afc3bffaf054cbc1c9c6a
Implement new criterion 'workspace'.

If the match expression is a plain number (e.g., '99'), the number of a workspace will be compared strictly. Otherwise, the match expression is taken as a regular expression and compared against the workspace's name.
This allows all of the following:

for_window [workspace=5] ...
for_window [workspace="5:foo"] ...
for_window [workspace="foo"] ...

fixes #1769
docs/userguide
include/data.h
parser-specs/commands.spec
parser-specs/config.spec
src/commands.c
src/config_directives.c
src/match.c
testcases/t/165-for_window.t