-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Andrei Thorp wrote: > Hello there, > > So I got this idea into my head to make an odvious "widget" for poping > up a run prompt. I have it already shoved into my rc.lua, but I > figured I'd split it out for the good of all. Anyway, modularization > and scope is kind of still confusing me. Some of my kind Awesome dev > friends tried to help me in IRC previously, but I must still not be > getting something. Attached are some patches for what I'm trying to > accomplish. Could someone suggest why this doesn't work as I'd expect? > > Patches are attached. One of them is just what I did to my rc.lua -- > did I do something wrong there? The other is the actual obvious > patch-email. > > Thanks guys!
Hi, this sounds like a case for awesome-users :P Anyway, with the attached, untested patch this looks good to me (yes, untested!). This patch applies on top of your patch. Cheers, Uli - -- "Do you know that books smell like nutmeg or some spice from a foreign land?" -- Faber in Fahrenheit 451 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iQEcBAEBCAAGBQJKQIUNAAoJECLkKOvLj8sGEJQIALQXQQF74qMCGPGK+igtl4FF jo0Kpnx58nPO+jXyDWRCHxl5Rl7wdVDwq8+zrdAbVr5YEnYBRdj6OJLg3dP0OU3W 5Fe//yiK2IXfCOu+sSDU7Pz4pRBUnH6ZVAyhDAprE0Uts0Idq4HGLrh/RtDiCBbd qDYSBsWtX4twNflcSlqjkoPXlxc+siIRv36Tzz7xutW0PgKHaNsi4Q4d57hfvB5V ZlzrKhgOoa3LhZ2492uuS8yJqZ+vgIie+x3h3OTf/aSKvNJ1tcMADhxgxXY1ZNCI GgUux+zgSM0uvpowtmggbBEXivpVIaWremUTZzs0J8LBriKhkBwhdjgRaRsCWUc= =08MI -----END PGP SIGNATURE-----
diff -Nurp a/popup_run_prompt/init.lua b/popup_run_prompt/init.lua --- a/popup_run_prompt/init.lua 2009-06-23 09:29:50.023884531 +0200 +++ b/popup_run_prompt/init.lua 2009-06-23 09:29:38.395920537 +0200 @@ -4,10 +4,13 @@ ------------------------------------------ local mouse = mouse -local awful = awful +local awful = require("awful") local widget = widget local screen = screen local io = io +local beautiful = require("beautiful") + +module("obvious.popup_run_prompt") io.write("GENERATING WIDGETS") runwibox = {} @@ -62,5 +65,3 @@ function run_prompt() run_prompt_callback ) end - -module("obvious.popup_run_prompt")