hey guys.

im trying to hack together a custom prompt to post messages to twitter. i
found a cli twitter client called twitter-gk that i thought would work well.

to post using twitter-gk all i have to run is:
twitter-gk <my message>

this is what i have put together looking at other people's code. it doesnt
work but its a start..

    awful.key({ modkey }, "F7",
        function () awful.prompt.run({ prompt = "Tweet: " },
          mypromptbox[mouse.screen].widget,
                  function (h)
                      awful.util.spawn("twitter-gk" .. h)
                  end)
        end)

if you guys could point me in the right direction i would really appreciate
it.

also, if there is a way to have a character counter for the prompt title
instead of "Tweet: " (either counting down from 140 or up from 0) that would
be awesome too. i have no idea how to approach that though. im still really
really new to writing code.

thanks.
tlkg

Reply via email to