From: Niels D. <ges...@gm...> - 2016-06-09 12:33:49
|
Hi, I've been playing around a bit and trying to set up my notion configuration such that my most used applications (browser, filemanager, etc...) each have differently coloured tab/titlebar. This would help me to keep track of what I'm doing. I supposed that I should add a custom substyle to my look_*.lua, then identify each new client window when it is created, and use WFrame.set_grattr to set the appropriate substyle based on that identification. However, I'm not sure if I'm on the right track. I can't directly set the graphical attribute on the client window, but if I do something like this: ioncore.get_hook("clientwin_mapped_hook"):add( function(cwin) local f = WFrame.parent(cwin) f:set_grattr("differentcolour", "set") end ) ... then all the tabs of the frame get that colour scheme! How would you target a single title bar? Have I overlooked something, or is this non-trivial? Thanks! - Niels |