Skip to content

support for multiple monitors #47

@derrickcope

Description

@derrickcope

i changed part of the update! function to support my multimonitor setup. not sure if this would be helpful to you.

def desktops
  op = []
  bsp_tree["monitors"].each do |monitor|
    focused = monitor["focusedDesktopId"]
    op << " " + monitor["name"] + ":"
    monitor["desktops"].each do |desktop|
      if desktop["id"] == focused and monitor["id"] == bsp_tree["focusedMonitorId"]
        op << focused_desktop(desktop)
      else
        op << unfocused_desktop(desktop)
      end
    end
  end
  op
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions