The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

Dynamically changing window border colors

asked 2015-08-29 14:44:27 +0000

setzer22 gravatar image

Is there a way I can dynamically change the decoration colors for a single window with i3? I'm talking about each window having its own independent border color, for example, while new windows obeying to the default.

If not, would this be a difficult feature to implement? It doesn't look like it and I'd be willing to implement it myself, but I'm not very familiar with i3's codebase. Which sections of the code would you recommend me taking a look at?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2015-08-29 15:52:07 +0000

Airblader gravatar image

updated 2015-08-31 05:22:13 +0000

Adaephon gravatar image

No, this isn't possible at the moment.

If you care about this being implemented, I suggest you first file a feature request on Github. Even if you were to implement this yourself, you should at least get a reply on whether we'd accept such a feature. Otherwise your work would either be wasted or you'd have to fork i3 for yourself.

The relevant code is probably mostly src/x.c and include/data.h. Plus you'd need to add a command for it, for which I suggest looking at any recent PR that added a new command.

edit flag offensive delete link more

Comments

@Adaephon Sorry, but I don't understand why you're linking to bitbucket. Also the link requires a login, so I've removed it.

Airblader gravatar imageAirblader ( 2015-08-29 19:13:23 +0000 )edit

Thank you, I'll file a feature request on GitHub before I attempt any work by myself. I just wanted to know if that wasn't already a feature to avoid adding an unnecessary issue.

setzer22 gravatar imagesetzer22 ( 2015-08-30 13:05:15 +0000 )edit

For anyone interested this is the feature request I just filed: https://github.com/i3/i3/issues/1879 .

setzer22 gravatar imagesetzer22 ( 2015-08-30 13:49:53 +0000 )edit

@Airblader Sorry, this should have been a link to the issue page of i3's github repository. It seems I forgot to actually copy the URL before pasting it :-[

Adaephon gravatar imageAdaephon ( 2015-08-31 05:23:33 +0000 )edit

Somehow the link appears to be broken, a closing p html tag is appended in the end for no apparent reason. Removing that tag from the end of the url fixes it, but I can't edit comments.

setzer22 gravatar imagesetzer22 ( 2015-09-01 08:49:59 +0000 )edit

Question Tools

1 follower

Stats

Asked: 2015-08-29 14:44:27 +0000

Seen: 158 times

Last updated: Aug 31