screen-message prompt for Awesome

The following snippet adds a screen-message prompt to the Awesome window manager:

mypromptbox = widget({
  type = "textbox",
  name = "mypromptbox",
  align = "left"
})

globalkeys = awful.util.table.join(
  -- [..]
  awful.key({ "Mod1" }, "F6", function ()
    awful.prompt.run(
      { prompt = "Msg: " },
      mypromptbox,
      function (msg)
        awful.util.spawn_with_shell(
          'echo ' .. msg .. ' | sm - -b Black -f White'
        )
      end
  ) end)
)

root.keys(globalkeys)

(The default colour scheme of black-on-white is painful.)

Comments (2)

Glad you like screen-message...

(But I’m wondering why everbody hates black-on-white, with screen-message and also unicode-screensaver, see http://bugs.de… and http://bugs.de….... :-))

Aug. 2, 2010, 2:32 a.m. #
You should hack more at night; you will quickly find out :)
Alvin

Do I just copy the "screen-message prompt" code into my rc.lua? I am really new to Awsome can I still get window controls in Awsome? How do I get delightful widgets I can download delightful through git but when I "git submodule init" I get "fatal: Not a git repository (or any parent up to mount point /home)" can you please help?

April 18, 2014, 8:15 a.m. #
Sorry, but this is not an appropriate venue to provide such in-depth support for Awesome. It sounds like you want to start with some more basic customisations first.