0

In this case I want flite (speech synthesizer) to read my selected text when I press a hotkey. The command is flite -t "text i want to read" How?

Nordle
  • 2,915
  • 3
  • 16
  • 34

1 Answers1

1

Does running flite -t "$(xclip -o)" do what you want it to do? If so, you could bind a key to running that:

    awful.key({ modkey,           }, "r",
        function ()
            awful.spawn.with_shell('flite -t "$(xclip -o)"')
        end,
    ),
Uli Schlachter
  • 9,337
  • 1
  • 23
  • 39