On Thu, Oct 18, 2012 at 9:22 PM, Juan Antonio Zuloaga Mellino <[email protected]> wrote: > I have this function in my rc.lua > > clientkeys = awful.util.table.join( > [...] > --Custom Begin > awful.key({ modkey }, "F8", function (c) if c.opacity < 0.95 then > c.opacity=c.opacity+0.05 else c.opacity=1 end end), > awful.key({ modkey }, "F7", function (c) if c.opacity > 0.05 then > c.opacity=c.opacity-0.05 else c.opacity=0 end end), > [...] > ) > > I use xcompmgr. > > The code works, but the first time I decrase the opacity, it's set to > 0. Increasing it before decreasing doesn't fix that. > > Anyone else can confirm this?
Hi Juan, What is the opacity before you increase or decrease it? Find out with something like sleep2; echo "return client.focus.opacity" | awesome-client I'm guessing it's a nil value... -- To unsubscribe, send mail to [email protected].
