Re: Awesome Development Version vs Awesome 3.4
Just wanted to say thanks for all the help! I can finally get my Awesome setup the way I want it. :) Hong Pak On Fri, May 4, 2012 at 2:37 PM, Uli Schlachter wrote: > On 04.05.2012 19:57, Hong Shick Pak wrote: >> I'm new to mailing lists so I don't think my last reply (the following >> message) got through. Here's me reposting it. >> >> From what I take it, I need to create a wibox.layout, define custom >> margins and stick my widget in it? >> >> I'm new to lua and awesome so I'm again lost at what to do... >> I did give it my best shot though: >> >> local membar_wibar = wibox.layout.flex.horizontal() >> wibox.layout.margin.set_margins(membar_wibar, 5) >> membar_wibar:add(memwidget) >> ... >> local layout = wibox.layout.align.horizontal() >> layout:set_right(membar_wibar) >> >> mywibox[s]:set_widget(layout) >> >> I see my widget, but the margins don't seem to take effect. > > local membar_wibar = wibox.layout.flex.horizontal() > membar_wibar:add(memwidget) > ... > local layout = wibox.layout.align.horizontal() > local margin = wibox.layout.margin() > margin:set_margins(5) > margin:set_widget(member_wibar) > layout:set_right(margin) > > mywibox[s]:set_widget(layout) > > There is no old "magic table" where one can define margins. Instead, margins > are > now a real layout class from which you create an instance etc. > >> Also, where would I put the new line of code for the gradient colors? >> I don't know what I'm supposed to call anyone. > > Uhm, I'm not sure where you are using this. The gradient color stuff was > previously just available on graphs, right? > > Anyway, I guess you want set_color(). > > local p = awful.widget.progressbar() > p:set_color({ type = "linear", from = { 0, 0 }, to = { 10, 0 }, > stops = { { 0, "#ff" }, { 1, "#00ff00" } } }) > > Uli > -- > "For saving the Earth.. and eating cheesecake!" -- To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.
Re: Awesome Development Version vs Awesome 3.4
On 04.05.2012 19:57, Hong Shick Pak wrote: > I'm new to mailing lists so I don't think my last reply (the following > message) got through. Here's me reposting it. > > From what I take it, I need to create a wibox.layout, define custom > margins and stick my widget in it? > > I'm new to lua and awesome so I'm again lost at what to do... > I did give it my best shot though: > > local membar_wibar = wibox.layout.flex.horizontal() > wibox.layout.margin.set_margins(membar_wibar, 5) > membar_wibar:add(memwidget) > ... > local layout = wibox.layout.align.horizontal() > layout:set_right(membar_wibar) > > mywibox[s]:set_widget(layout) > > I see my widget, but the margins don't seem to take effect. local membar_wibar = wibox.layout.flex.horizontal() membar_wibar:add(memwidget) ... local layout = wibox.layout.align.horizontal() local margin = wibox.layout.margin() margin:set_margins(5) margin:set_widget(member_wibar) layout:set_right(margin) mywibox[s]:set_widget(layout) There is no old "magic table" where one can define margins. Instead, margins are now a real layout class from which you create an instance etc. > Also, where would I put the new line of code for the gradient colors? > I don't know what I'm supposed to call anyone. Uhm, I'm not sure where you are using this. The gradient color stuff was previously just available on graphs, right? Anyway, I guess you want set_color(). local p = awful.widget.progressbar() p:set_color({ type = "linear", from = { 0, 0 }, to = { 10, 0 }, stops = { { 0, "#ff" }, { 1, "#00ff00" } } }) Uli -- "For saving the Earth.. and eating cheesecake!" -- To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.
Re: Awesome Development Version vs Awesome 3.4
I'm new to mailing lists so I don't think my last reply (the following message) got through. Here's me reposting it. >From what I take it, I need to create a wibox.layout, define custom margins and stick my widget in it? I'm new to lua and awesome so I'm again lost at what to do... I did give it my best shot though: local membar_wibar = wibox.layout.flex.horizontal() wibox.layout.margin.set_margins(membar_wibar, 5) membar_wibar:add(memwidget) ... local layout = wibox.layout.align.horizontal() layout:set_right(membar_wibar) mywibox[s]:set_widget(layout) I see my widget, but the margins don't seem to take effect. Also, where would I put the new line of code for the gradient colors? I don't know what I'm supposed to call anyone. I appreciate all the help. Hong Pak On Thu, May 3, 2012 at 4:31 PM, Uli Schlachter wrote: > On 03.05.2012 21:42, dodo wrote: >> On 2 May 2012 22:24, Uli Schlachter wrote: >>> Hi, >>> >>> On 02.05.2012 22:03, Hong Shick Pak wrote: I am currently using awesome-git-20120214-1 and there are changes with the config that I can't find documented. I have tried to read the git commit logs and its a bit cryptic for me. I've run into 2 issues specifically. What happened to widget.layouts? >>> >>> wibox.layout happened to it. Works quite different, is IMHO way more >>> flexible >>> and everyone out there will hate me because it breaks their config. >> >> they don't have to: https://github.com/dodo/uzful/blob/master/layout/util.lua >> >> it basically eats a table similar to like in 3.4 and uses the new layout >> style. >> >> (usage: https://github.com/dodo/awesomerc/blob/master/rc.lua#L513-530) >> >> if you want i can make a patch out if it. > > Hm, dunno. I think that this pretty much sucks for converting configs. It only > really works for a fixed or a flex layout, and even then the old rightleft > stuff > doesn't work. The syntax for align also is too different from what is there > in 3.4. > > However, this might shorten configs a bit. E.g. before: > > local l = wibox.layout.fixed.horizontal > l:add(a) > l:add(b) > l:add(c) > > after: > > local l = { layout = wibox.layout.fixed.horizontal, > a, b, c } > > I'm not sure if it's worth merging this just for this minor convenience... > > Uli > who's quite bad at deciding right now > -- > "Engineering - where the semi-skilled laborers execute the vision > of those who think and dream. Hello Oompa-Loompas of science." > > -- > To unsubscribe, send mail to awesome-unsubscr...@naquadah.org. -- To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.
Re: Awesome Development Version vs Awesome 3.4
On 03.05.2012 21:42, dodo wrote: > On 2 May 2012 22:24, Uli Schlachter wrote: >> Hi, >> >> On 02.05.2012 22:03, Hong Shick Pak wrote: >>> I am currently using awesome-git-20120214-1 and there are changes with >>> the config that I can't find documented. I have tried to read the git >>> commit logs and its a bit cryptic for me. I've run into 2 issues >>> specifically. What happened to widget.layouts? >> >> wibox.layout happened to it. Works quite different, is IMHO way more flexible >> and everyone out there will hate me because it breaks their config. > > they don't have to: https://github.com/dodo/uzful/blob/master/layout/util.lua > > it basically eats a table similar to like in 3.4 and uses the new layout > style. > > (usage: https://github.com/dodo/awesomerc/blob/master/rc.lua#L513-530) > > if you want i can make a patch out if it. Hm, dunno. I think that this pretty much sucks for converting configs. It only really works for a fixed or a flex layout, and even then the old rightleft stuff doesn't work. The syntax for align also is too different from what is there in 3.4. However, this might shorten configs a bit. E.g. before: local l = wibox.layout.fixed.horizontal l:add(a) l:add(b) l:add(c) after: local l = { layout = wibox.layout.fixed.horizontal, a, b, c } I'm not sure if it's worth merging this just for this minor convenience... Uli who's quite bad at deciding right now -- "Engineering - where the semi-skilled laborers execute the vision of those who think and dream. Hello Oompa-Loompas of science." -- To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.
Re: Awesome Development Version vs Awesome 3.4
On 2 May 2012 22:24, Uli Schlachter wrote: > Hi, > > On 02.05.2012 22:03, Hong Shick Pak wrote: >> I am currently using awesome-git-20120214-1 and there are changes with >> the config that I can't find documented. I have tried to read the git >> commit logs and its a bit cryptic for me. I've run into 2 issues >> specifically. What happened to widget.layouts? > > wibox.layout happened to it. Works quite different, is IMHO way more flexible > and everyone out there will hate me because it breaks their config. they don't have to: https://github.com/dodo/uzful/blob/master/layout/util.lua it basically eats a table similar to like in 3.4 and uses the new layout style. (usage: https://github.com/dodo/awesomerc/blob/master/rc.lua#L513-530) if you want i can make a patch out if it. -- dodo -- To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.
Re: Awesome Development Version vs Awesome 3.4
>From what I take it, I need to create a wibox.layout, define custom margins and stick my widget in it? I'm new to lua and awesome so I'm again lost at what to do... I did give it my best shot though: local membar_wibar = wibox.layout.flex.horizontal() wibox.layout.margin.set_margins(membar_wibar, 5) membar_wibar:add(memwidget) ... local layout = wibox.layout.align.horizontal() layout:set_right(membar_wibar) mywibox[s]:set_widget(layout) I see my widget, but the margins don't seem to take effect. Also, where would I put the new line of code for the gradient colors? I don't know what I'm supposed to call anyone. I appreciate all the help. Hong pak On Wed, May 2, 2012 at 4:24 PM, Uli Schlachter wrote: > Hi, > > On 02.05.2012 22:03, Hong Shick Pak wrote: >> I am currently using awesome-git-20120214-1 and there are changes with >> the config that I can't find documented. I have tried to read the git >> commit logs and its a bit cryptic for me. I've run into 2 issues >> specifically. What happened to widget.layouts? > > wibox.layout happened to it. Works quite different, is IMHO way more flexible > and everyone out there will hate me because it breaks their config. > > If you got some more specific question, I'd be happy to help. > >> set_gradient_colors also seem to be gone. Are there replacements? > > Dunno, I never figured out how that was supposed to work. > > So let's try the example from the set_gradient_colors docs: > > { "#ff", "#00ff00", "#ff", ["#ff"] = 10 } > > I think this might now be: > > { type = "linear", from = { 0, 0 }, to = { 10, 0 }, > stops = { { 0, "#ff" }, { 1, "#00ff00" } } } > > However, I'm not sure about that. > > The above defines a linear gradient which goes from the point 0,0 to the point > 10, 0. At 0,0, the gradient will be red and at 10, 0 it is green. You can add > more color stops, e.g. { 0.5, "#ff" } to get some blue in the middle. > > Btw did I mention that this new color stuff is way more flexible? ;-) > You can now use such a color definition everywhere where a color is expected, > not only with the progressbar (or whichever widget it was). Also, there are > more > types of gradients than just linear (solid, linear, radial, surface). > > Uli > -- > "Engineering - where the semi-skilled laborers execute the vision > of those who think and dream. Hello Oompa-Loompas of science." > > -- > To unsubscribe, send mail to awesome-unsubscr...@naquadah.org. -- To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.
Re: Awesome Development Version vs Awesome 3.4
Hi, On 02.05.2012 22:03, Hong Shick Pak wrote: > I am currently using awesome-git-20120214-1 and there are changes with > the config that I can't find documented. I have tried to read the git > commit logs and its a bit cryptic for me. I've run into 2 issues > specifically. What happened to widget.layouts? wibox.layout happened to it. Works quite different, is IMHO way more flexible and everyone out there will hate me because it breaks their config. If you got some more specific question, I'd be happy to help. > set_gradient_colors also seem to be gone. Are there replacements? Dunno, I never figured out how that was supposed to work. So let's try the example from the set_gradient_colors docs: { "#ff", "#00ff00", "#ff", ["#ff"] = 10 } I think this might now be: { type = "linear", from = { 0, 0 }, to = { 10, 0 }, stops = { { 0, "#ff" }, { 1, "#00ff00" } } } However, I'm not sure about that. The above defines a linear gradient which goes from the point 0,0 to the point 10, 0. At 0,0, the gradient will be red and at 10, 0 it is green. You can add more color stops, e.g. { 0.5, "#ff" } to get some blue in the middle. Btw did I mention that this new color stuff is way more flexible? ;-) You can now use such a color definition everywhere where a color is expected, not only with the progressbar (or whichever widget it was). Also, there are more types of gradients than just linear (solid, linear, radial, surface). Uli -- "Engineering - where the semi-skilled laborers execute the vision of those who think and dream. Hello Oompa-Loompas of science." -- To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.
Re: Awesome Development Version vs Awesome 3.4
2012/5/2 Hong Shick Pak : > I am currently using awesome-git-20120214-1 and there are changes with > the config that I can't find documented. http://awesome.naquadah.org/wiki/Awesome_3.4_to_git_master -- To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.