diff options
| author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-05-05 12:36:50 +1000 | 
|---|---|---|
| committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-05-05 22:29:37 +1000 | 
| commit | 228c478e8d11dd14972b237574146fd0d2d6b96c (patch) | |
| tree | 819dfc4d6151ebb28d7db5b862d0ac4314d82fc3 /sway/commands.c | |
| parent | 8dae168b77173f086880db0878f0a4b34a53e8b3 (diff) | |
| download | sway-228c478e8d11dd14972b237574146fd0d2d6b96c.tar.xz | |
Implement title_format
This implements the title_format command, with a new placeholder %shell
which gets substituted with the view type (xwayland, xdg_shell_v6 or
wl_shell).
Example config:
    for_window [title=".*"] title_format %title (class=%class instance=%instance shell=%shell)
Diffstat (limited to 'sway/commands.c')
| -rw-r--r-- | sway/commands.c | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/sway/commands.c b/sway/commands.c index efed7ddf..2e1cdc2c 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -182,6 +182,7 @@ static struct cmd_handler command_handlers[] = {  	{ "splith", cmd_splith },  	{ "splitt", cmd_splitt },  	{ "splitv", cmd_splitv }, +	{ "title_format", cmd_title_format },  };  static int handler_compare(const void *_a, const void *_b) { | 
