diff options
author | 2018-05-05 12:36:50 +1000 | |
---|---|---|
committer | 2018-05-05 22:29:37 +1000 | |
commit | 228c478e8d11dd14972b237574146fd0d2d6b96c (patch) | |
tree | 819dfc4d6151ebb28d7db5b862d0ac4314d82fc3 /sway/commands.c | |
parent | Merge pull request #1918 from RyanDwyer/title-scissor (diff) | |
download | sway-228c478e8d11dd14972b237574146fd0d2d6b96c.tar.gz sway-228c478e8d11dd14972b237574146fd0d2d6b96c.tar.zst sway-228c478e8d11dd14972b237574146fd0d2d6b96c.zip |
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[] = { | |||
182 | { "splith", cmd_splith }, | 182 | { "splith", cmd_splith }, |
183 | { "splitt", cmd_splitt }, | 183 | { "splitt", cmd_splitt }, |
184 | { "splitv", cmd_splitv }, | 184 | { "splitv", cmd_splitv }, |
185 | { "title_format", cmd_title_format }, | ||
185 | }; | 186 | }; |
186 | 187 | ||
187 | static int handler_compare(const void *_a, const void *_b) { | 188 | static int handler_compare(const void *_a, const void *_b) { |