{"id":509,"date":"2009-11-02T23:22:16","date_gmt":"2009-11-03T04:22:16","guid":{"rendered":"http:\/\/sahd.lamafam.org\/?p=509"},"modified":"2009-11-02T23:21:07","modified_gmt":"2009-11-03T04:21:07","slug":"awesome-popup-run-prompt","status":"publish","type":"post","link":"https:\/\/sahd.lamafam.org\/?p=509","title":{"rendered":"Awesome Popup Run Prompt"},"content":{"rendered":"<p>With a little help from the obvious library for awesome, I&#8217;ve replaced the stock run prompt in awesome with a popup run prompt.  The popup is nice for no other reason than it&#8217;s easier to see the command being entered since it doesn&#8217;t conflict with task list and the tag list.<\/p>\n<p>The popup is actually pretty straight forward to work.  Simply create a wibox with a prompt widget in it and initialize the visibility to false.  Then, on whatever keystroke, switch the visibility to true and use a callback function to hide it on completion.<\/p>\n<p>I&#8217;ve also leveraged the prompt so that I can launch uzbl at a certain url or with a search.  Also, while uzbl is running I can use the popup to change the url.<\/p>\n<p>The slickest thing about the prompt; however, is that you can specify a history file for each prompt use.  Now I have a history that I can scroll through when I launch the prompt.  The same technique works for search strings as well.  Awesome.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With a little help from the obvious library for awesome, I&#8217;ve replaced the stock run prompt in awesome with a popup run prompt. The popup is nice for no other reason than it&#8217;s easier to see the command being entered since it doesn&#8217;t conflict with task list and the tag list. The popup is actually [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-509","post","type-post","status-publish","format-standard","hentry","category-computers"],"_links":{"self":[{"href":"https:\/\/sahd.lamafam.org\/index.php?rest_route=\/wp\/v2\/posts\/509","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sahd.lamafam.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sahd.lamafam.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sahd.lamafam.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sahd.lamafam.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=509"}],"version-history":[{"count":1,"href":"https:\/\/sahd.lamafam.org\/index.php?rest_route=\/wp\/v2\/posts\/509\/revisions"}],"predecessor-version":[{"id":510,"href":"https:\/\/sahd.lamafam.org\/index.php?rest_route=\/wp\/v2\/posts\/509\/revisions\/510"}],"wp:attachment":[{"href":"https:\/\/sahd.lamafam.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=509"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sahd.lamafam.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=509"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sahd.lamafam.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}