-
When Polybar starts up with AwesomeWM, custom modules that work on left-click function correctly for the first time. However, after the initial click, the modules stop responding. This issue seems to be related to AwesomeWM treating Polybar as a regular window. My Custom Module Configuration:
Why I Believe this is an AwesomeWM Issue: This problem occurs even when I left-click on an empty space in the Polybar and then attempt to click the custom module. It suggests that the issue is not specific to the custom module itself, but rather how AwesomeWM interacts with Polybar. What I've Tried (but didn't work):
However, even after adding this rule, the problem persists. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
We've had this issue before and I also believe the main problem is on the AwesomeWM side (polybar doesn't even receive the mouse events). There is a small section on it on our known issues page. Basically, use |
Beta Was this translation helpful? Give feedback.
-
Thank you. I must admit, I feel a bit foolish for not checking the known issues page beforehand. Regarding the problem with |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, I have tested different configurations, including setting
Ideally, I would like the Polybar to consistently remain at the top of the screen, without being treated as a movable window by awesomeWM. Additionally, it should hide when entering fullscreen mode to avoid obstructing the content. |
Beta Was this translation helpful? Give feedback.
-
My SolutionI managed to fix this issue by modifying the Clientbuttons = gears.table.join(
awful.button({}, 1, function(c)
c:emit_signal("request::activate", "mouse_click", { raise = true })
end),
awful.button({ modkey }, 1, function(c)
c:emit_signal("request::activate", "mouse_click", { raise = true })
awful.mouse.client.move(c)
end),
awful.button({ modkey }, 3, function(c)
c:emit_signal("request::activate", "mouse_click", { raise = true })
awful.mouse.client.resize(c)
end)
) I made the following modifications to the code: Clientbuttons = gears.table.join(
-- awful.button({}, 1, function(c)
-- c:emit_signal("request::activate", "mouse_click", { raise = true })
-- end),
awful.button({ modkey }, 1, function(c)
c:emit_signal("request::activate", "mouse_click", { raise = true })
awful.mouse.client.move(c)
end),
awful.button({ modkey }, 3, function(c)
c:emit_signal("request::activate", "mouse_click", { raise = true })
awful.mouse.client.resize(c)
end)
) The first button binding was commented out by wrapping it with |
Beta Was this translation helpful? Give feedback.
My Solution
I managed to fix this issue by modifying the
awesome/rc.lua
(awesomeWM config file). Previously, the code in the file was:I made the following modifications to the code: