forgot to cc awesome again..
---------- Forwarded message ---------- From: Walter White <[email protected]> Date: Tue, Oct 9, 2012 at 6:46 PM Subject: Re: something showing when windows is "on top" To: David F <[email protected]> On Tue, Oct 9, 2012 at 4:31 PM, David F <[email protected]> wrote: > local function setcol(c) > if c == client.focus then > c.border_color = beautiful.border_focus; > elseif c.ontop then > c.border_color = beautiful.border_ontop; > else > c.border_color = beautiful.border_normal; > end > end > > -- ... > > awful.key( { modkey, }, "t", function (c) c.ontop = not c.ontop; > setcol(c); end ), > > -- ... > > client.add_signal( "focus" , setcol ); > client.add_signal( "unfocus", setcol ); > > > And in your theme file, something like (as I mentioned previously, this > might be possible in rc.lua if you don't want to have a theme file, but > replace "theme." with "beautiful."): > > > theme.border_width = "3"; > theme.border_normal = "gray"; > theme.border_focus = "green"; > theme.border_marked = "#91231c"; > theme.border_ontop = "violet"; > > You can reverse the order of the conditionals in setcol() if you want the > ontop color to take precedence over focus. Using signals: client.connect_signal("property::ontop", function(c) if c == client.focus then c.border_color = beautiful.border_focus elseif c.ontop then c.border_color = beautiful.border_ontop else c.border_color = beautiful.border_normal end end) Entirely untested, but something like this should work without adding anything to the keybinds. -- To unsubscribe, send mail to [email protected].
