nuxshed / dotfiles

pls help
Other
388 stars 16 forks source link

Dual Screen enhancement | popups appear only on one screen #9

Closed AdsonCicilioti closed 1 year ago

AdsonCicilioti commented 2 years ago

Hi @nuxshed !

I'm getting your Awesome config because I really liked your proposal. Congratulations! It turned out amazing!

However, the calendar, battery, Layout list and start menu popups, in addition to the Tasklist and Taglist Bling previews, only appear on one screen.

Look: image

[extra question] The Action panel appear on this position: image

AdsonCicilioti commented 2 years ago

i think i got it!

On button section of battery widget i change to:

...  

buttons = {
    awful.button(
      {},
      1,
      function()
        if battery_popup.visible then
          battery_popup.visible = not battery_popup.visible
        else
          battery_popup:move_next_to(mouse.screen)
        end
      end
    )
  },

and on placement section of battery_popup:

...
placement = function(c)
    (awful.placement.next_to)(
      c,
      {
        preferred_positions = "bottom",
        preferred_anchors = "middle"
      }
    )
  end,
...