Skip to content

i3 compat: for_window and title_format have no %machine specifier #9237

Description

@redfast00

I have an i3 setup where I am running multiple LXC containers; each LXC container has the X11 socket forwarded. This makes it easy to separate projects from different jobs/private life. To visually differentiate open windows when I'm working, I use title_format and give every container a different color:

for_window [all] title_format "<span background='black'>%machine</span> %title"
for_window [machine="job-1"] title_format "<span background='blue'>%machine</span> %title"
for_window [machine="job-2"] title_format "<span background='green'>%machine</span> %title"
for_window [machine="private"] title_format "<span background='darkorange' foreground='black'>%machine</span> %title"

I'm now migrating to Sway, but can't seem to get the %machine property working. I also don't see it in the man page, so I guess there's no support for it yet in Sway. Would it be possible to add support for this, or is this something that Wayland/Sway just fundamentally does not have?

Metadata

Metadata

Assignees

No one assigned

    Labels

    i3-compatSway doesn't match i3's behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions