]> git.sur5r.net Git - i3/i3/commit - testcases/t/201-config-parser.t
i3bar: implement custom workspace numbers config
authorTony Crisci <tony@dubstepdish.com>
Mon, 5 May 2014 17:56:47 +0000 (13:56 -0400)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 16 May 2014 15:55:30 +0000 (17:55 +0200)
commite707e0a5fabf20351d727aecedd7c75db08c850c
tree63b0b8c1c52b022f352342af9cb251c5156b3c90
parente2f47ef4668e5f9f55ac271025790f5abf657f08
i3bar: implement custom workspace numbers config

Implement the configuration option within the bar config directive for
custom workspace numbers with the directive `strip_workspace_numbers
yes`.

This directive strips the workspace name of the number prefix and
delimiter. When the workspace name consists only of the number, it will
default to show the number.

For example:

* "2:5" -> "5"
* "4:$" -> "$"
* "8" -> "8"

This allows customization of i3bar for alternate ordering of workspaces
which has a legitimate use for alternate keyboard layouts such as
Dvorak.

fixes #1131
12 files changed:
docs/userguide
i3bar/include/config.h
i3bar/include/workspaces.h
i3bar/src/config.c
i3bar/src/workspaces.c
i3bar/src/xcb.c
include/config.h
include/config_directives.h
parser-specs/config.spec
src/config_directives.c
src/ipc.c
testcases/t/201-config-parser.t