]> git.sur5r.net Git - i3/i3/commit - travis/travis-base-ubuntu-386.Dockerfile
Introduce support for specifying variables from X resources. (#2286)
authorIngo Bürk <admin@airblader.de>
Sun, 8 May 2016 10:55:27 +0000 (12:55 +0200)
committerMichael Stapelberg <stapelberg@users.noreply.github.com>
Sun, 8 May 2016 10:55:27 +0000 (12:55 +0200)
commit47562b414389711a82db25a694b064ad39117f82
tree9170a64505a3953ea4db9d71de0791ea79fad140
parentdbafb3cf23d99eab88ff94e302b5fd7b6994a5b5
Introduce support for specifying variables from X resources. (#2286)

This patch introduces a new 'set_from_resource' config directive which
allows defining a variable by retrieving its value from the X resource
database. This avoids having to configure a color scheme in multiple
files. The directive takes an additional fallback value which is used
in case the resource cannot be found or during config validation where
no X connection is available.

Furthermore, this patch includes the following changes:
- If the same variable is defined twice, we now properly overwrite the
  value of the assignment rather than inserting two variable definitions
  with the same key.
- We now depend on xcb-util-xrm to query the resource.
- Increase the buffer size for variable / resource assignments.

fixes #2130
12 files changed:
DEPENDS
common.mk
debian/control
docs/userguide
include/config_parser.h
parser-specs/config.spec
src/config_parser.c
src/i3.mk
testcases/t/201-config-parser.t
testcases/t/532-xresources.t [new file with mode: 0644]
travis/travis-base-ubuntu-386.Dockerfile
travis/travis-base-ubuntu.Dockerfile