3

This is the code I currently have:

-- Silly shrug emoji.
awful.key({ modkey }, "F12",
    function ()
        awful.util.spawn("xdotool getactivewindow type '¯\\_(ツ)_/¯'", false)
    end,
    {description = "Silly shrug emoji", group = "awesome"})

Sadly, all it seems to do is to send the active window to the last tag. What am I doing wrong?

Note that the command line works just fine:

enter code here

  • 1
    This question follows unix.stackexchange.com/q/511450/5132 . – JdeBP Apr 10 at 10:05
  • 1
    @JdeBP Why would that be relevant? Just curious… – Sardathrion Apr 10 at 10:22
  • 1
    When I try xdotool getactivewindow type '-' I get XGetWindowProperty[_NET_ACTIVE_WINDOW] failed (code=1) it doesn't look like xdotool is the most stable piece of software. – Philip Couling Apr 10 at 12:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.