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.)

§

Tags: Computer GNU/Linux Hacks
Planets: ALUG UWCS WUGLUG Debian

§

One comment

  1. 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.... and http://bugs........ :-))

    Joachim Breitner

    You should hack more at night; you will quickly find out :)

    lamby

Reply

§