On 10/09/2012 05:33 AM, [email protected] wrote:
On 08-10-12 19:01, David F wrote:
If I understand you correctly, by "on top" you mean "keyboard
focus," and "show" means a onscreen visual cue -- try this in your
theme file to put a green border around the focused window, it works
well for me:
No, I mean when I press Mod4+t, in rc.lua is:
"awful.key({ modkey,}, "t", function (c) c.ontop = not c.ontop end),"
OK, how about something like this in rc.lua (you need to put these fragments
in the correct places, probably replacing whatever you currently have for
the keybindings and signal callbacks):
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.
--
To unsubscribe, send mail to [email protected].