Skip to content

Apply different GTK CSS depending on roxterm instance profile #259

@manuhabitela

Description

@manuhabitela

Hello!

Long time user of ROXTerm that I love so first: thank you :)

I'm using GTK CSS to add padding to ROXTerm windows via the VteTerminal selector. It works great.

One new use case I have is I'd love to be able to add my padding only when using a specific ROXTerm profile. Or via any other condition that could fit actually, but I guess this would be the cleanest/simplest way.

For now, I checked how I could differentiate my ROXTerm instances in the CSS via the GTK debugger. I saw the GTKWindow has the window title as "Label". So I configured a new ROXTerm profile that has a fixed window title, and tried to blindly target it in the CSS, like GTKWindow#title VteTerminal, GTKWindow[label="title"] VteTerminal or other things. Without success. Checked the GTK docs and did not find any info that helped me.

So my questions are:

  • is what I want to do actually already doable? Maybe I missed something
  • if not, do you know if it would be technically doable to add the current profile name as a class on VTeTerminal? To then allow people to target those via the GTK CSS like VteTerminal.profile-name { ... }.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions