Re: Using promptbox for self made widget

2011-11-24 Thread Adam Jimerson
Thanks for the example code On Nov 23, 2011 10:24 PM, "Zveroy" wrote: > There my custom widget which demonstrate example of usage awful.prompt > (http://awesome.naquadah.org/doc/api/modules/awful.prompt.html): > http://pastebin.com/0TUAwbhx > > Widget usage: > > -- make widget > rtitle = runtitle

Re: Using promptbox for self made widget

2011-11-23 Thread Zveroy
There my custom widget which demonstrate example of usage awful.prompt (http://awesome.naquadah.org/doc/api/modules/awful.prompt.html): http://pastebin.com/0TUAwbhx Widget usage: -- make widget rtitle = runtitle() … -- add to wibox mywibox[s].widgets = { … rtitle.widget,

Re: Using promptbox for self made widget

2011-11-21 Thread Adam Jimerson
Well that is a start in the right direction at least thanks On Mon, Nov 21, 2011 at 9:50 AM, Alexander Yakushev wrote: > I don't know is there something like this in awful or anywhere, but I've > written my own implementation of this feature. Take a look at it here: > > https://github.com/alexan

Re: Using promptbox for self made widget

2011-11-21 Thread Alexander Yakushev
I don't know is there something like this in awful or anywhere, but I've written my own implementation of this feature. Take a look at it here: https://github.com/alexander-yakushev/awesompd/blob/master/awesompd.lua Lines from 985 to 1026. It is ugly as hell but works pretty solidly. Here's ho

Using promptbox for self made widget

2011-11-21 Thread Adam Jimerson
I am wanting to write a Awesome widget that allows for searching, if one doesn't already exists for this. My goal is I want to be able to hit a key combo, something like modkey + s because it is currently unused on my system, and it opens up a promptbox much like modkey+r or modkey+x, then takes t