DEV Community

Vadim Filimonov
Vadim Filimonov

Posted on

Cursor highlighting in AwesomeWM + Xubuntu

I do not know about other operating systems, but when I show the screen in Skype, my interlocutor does not see the mouse cursor ¯_(ツ)_/¯

In Xubuntu it is possible to illuminate the cursor:

Enter fullscreen mode Exit fullscreen mode

Image description

To bind this in Awesome WM, open rc.lua, find the clientbuttons variable and add a new line:

clientbuttons = gears.table.join(
    awful.button({ }, 1, function (c) client.focus = c; c:raise() end),
    awful.button({ modkey }, 1, awful.mouse.client.move),
    awful.button({ modkey }, 3, awful.mouse.client.resize),
    awful.button({ modkey, "Control" }, 2, function () awful.util.spawn("xfce4-find-cursor") end))
Enter fullscreen mode Exit fullscreen mode

In this case, the command will be triggered at: Win + ctrl + mouse wheel.

Discussion (0)