{"action":"created","issue":{"url":"https://api.github.com/repos/jaagr/polybar/issues/1537","repository_url":"https://api.github.com/repos/jaagr/polybar","labels_url":"https://api.github.com/repos/jaagr/polybar/issues/1537/labels{/name}","comments_url":"https://api.github.com/repos/jaagr/polybar/issues/1537/comments","events_url":"https://api.github.com/repos/jaagr/polybar/issues/1537/events","html_url":"https://github.com/jaagr/polybar/issues/1537","id":386872879,"node_id":"MDU6SXNzdWUzODY4NzI4Nzk=","number":1537,"title":"Systray position error on multiple monitor vertically aligned","user":{"login":"herod2k","id":3713164,"node_id":"MDQ6VXNlcjM3MTMxNjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/3713164?v=4","gravatar_id":"","url":"https://api.github.com/users/herod2k","html_url":"https://github.com/herod2k","followers_url":"https://api.github.com/users/herod2k/followers","following_url":"https://api.github.com/users/herod2k/following{/other_user}","gists_url":"https://api.github.com/users/herod2k/gists{/gist_id}","starred_url":"https://api.github.com/users/herod2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/herod2k/subscriptions","organizations_url":"https://api.github.com/users/herod2k/orgs","repos_url":"https://api.github.com/users/herod2k/repos","events_url":"https://api.github.com/users/herod2k/events{/privacy}","received_events_url":"https://api.github.com/users/herod2k/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-03T15:34:25Z","updated_at":"2018-12-03T15:53:01Z","closed_at":null,"author_association":"NONE","body":"## Describe the issue\r\nThe systray is in the wrong position when I use two monitors vertically aligned. It appears outside of Polybar\r\n\r\n**Expected behavior:**\r\nThe systray should appear on the Polybar \r\n\r\n**Actual behavior:**\r\nThe systray appear on the second screen outside of Polybar\r\n\r\n## To Reproduce\r\n* use two monitors\r\n* load some software with applet on systray (Telegram, Slack, udiskie, etc etc)\r\n* Align the monitor vertically using arandr\r\n\r\n\r\n## Polybar Log\r\n```\r\nerror: module/xbacklight: Could not get data (err: XCB_NAME (15))\r\nerror: Disabling module \"xbacklight\" (reason: Not supported for \"eDP-1\")\r\nerror: tray: Failed to put tray above 0x1200002 in the stack (XCB_MATCH (8))\r\n```\r\n\r\n## Polybar Configuration\r\n```\r\n[colors]\r\ncolor0 = ${xrdb:color0}\r\ncolor1 = ${xrdb:color1}\r\ncolor2 = ${xrdb:color2}\r\ncolor3 = ${xrdb:color3}\r\ncolor4 = ${xrdb:color4}\r\ncolor5 = ${xrdb:color5}\r\ncolor6 = ${xrdb:color6}\r\ncolor7 = ${xrdb:color7}\r\n\r\nbackground = ${xrdb:background}\r\nforeground-alt = #555\r\nforeground = ${xrdb:foreground}\r\nprimary = ${colors.color3}\r\nalert = #bd2c40\r\n\r\n[bar/b0]\r\nwidth = 100%\r\nheight = 20\r\nfixed-center = false\r\nmonitor = eDP-1\r\n\r\nbackground = ${colors.background}\r\nforeground = ${colors.foreground}\r\n\r\nline-size = 3\r\nline-color = ${colors.color1}\r\n\r\npadding-left = 0\r\npadding-right = 2\r\n\r\nmodule-margin = 1\r\n\r\nfont-0 = FontAwesome:pixelsize=9;2\r\nfont-1 = xos4 Terminus:pixelsize=9;2\r\nfont-2 = Source\\ Han\\ Sans:pixelsize=9;2\r\n\r\nmodules-left = i3 pulseaudio previous playpause next spotify\r\nmodules-center = xwindow \r\nmodules-right = filesystem xkeyboard cpu memory xbacklight battery date powermenu\r\n\r\nlocale = en_GB.utf8\r\n\r\ntray-position = right\r\ntray-padding = 2\r\n\r\nenable-ipc = true\r\n\r\nscroll-up = i3wm-wsnext\r\nscroll-down = i3wm-wsprev\r\n\r\ncursor-click = pointer\r\n\r\n[module/xwindow]\r\ntype = internal/xwindow\r\nlabel = %title:0:40:...%\r\n\r\n[module/xkeyboard]\r\ntype = internal/xkeyboard\r\nblacklist-0 = num lock\r\n\r\nformat-prefix = \" \"\r\nformat-prefix-foreground = ${colors.color1}\r\n\r\nlabel-layout = %layout%\r\n\r\nlabel-indicator-padding = 2\r\nlabel-indicator-margin = 1\r\nlabel-indicator-background = ${colors.alert}\r\n\r\n[module/filesystem]\r\ntype = internal/fs\r\ninterval = 25\r\n\r\nmount-0 = /\r\n\r\nlabel-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%\r\nlabel-unmounted = %mountpoint% not mounted\r\nlabel-unmounted-foreground = ${colors.foreground-alt}\r\n\r\n[module/i3]\r\ntype = internal/i3\r\nformat = <label-state> <label-mode>\r\nindex-sort = true\r\nwrapping-scroll = false\r\n\r\n; Only show workspaces on the same output as the bar\r\npin-workspaces = true\r\n\r\nlabel-mode-padding = 2\r\nlabel-mode-foreground = ${colors.background}\r\nlabel-mode-background = ${colors.primary}\r\n\r\n; focused = Active workspace on focused monitor\r\nlabel-focused = %name%\r\nlabel-focused-underline= ${colors.primary}\r\nlabel-focused-padding = 2\r\n\r\n; unfocused = Inactive workspace on any monitor\r\nlabel-unfocused = %name%\r\nlabel-unfocused-padding = 2\r\n\r\n; visible = Active workspace on unfocused monitor\r\nlabel-visible = %name%\r\nlabel-visible-underline = ${self.label-focused-underline}\r\nlabel-visible-padding = ${self.label-focused-padding}\r\n\r\n; urgent = Workspace with urgency hint set\r\nlabel-urgent = %name%\r\nlabel-urgent-background = ${colors.alert}\r\nlabel-urgent-padding = 2\r\n\r\n[module/mpd]\r\ntype = internal/mpd\r\nformat-online = <label-song>  <icon-prev> <icon-stop> <toggle> <icon-next>\r\nformat-stopped =\r\n\r\nicon-prev = \r\nicon-stop = \r\nicon-play = \r\nicon-pause = \r\nicon-next = \r\n\r\nlabel-song-maxlen = 40\r\nlabel-song-ellipsis = true\r\n\r\n[module/xbacklight]\r\ntype = internal/xbacklight\r\n\r\nformat = <label> <bar>\r\nlabel = \r\n\r\nbar-width = 10\r\nbar-indicator = |\r\nbar-indicator-foreground = #ff\r\nbar-indicator-font = 2\r\nbar-fill = ─\r\nbar-fill-font = 2\r\nbar-fill-foreground = #9f78e1\r\nbar-empty = ─\r\nbar-empty-font = 2\r\nbar-empty-foreground = ${colors.foreground-alt}\r\n\r\n[module/player-mpris-tail]\r\ntype = custom/script\r\nexec = ~/.config/polybar/player-mpris-tail.py\r\ntail = true\r\nclick-left = playerctl previous\r\nclick-right = playerctl next\r\nclick-middle = playerctl play-pause\r\n\r\n[module/cpu]\r\ntype = internal/cpu\r\ninterval = 2\r\nformat-prefix = \" \"\r\nformat-prefix-foreground = ${colors.color2}\r\nlabel = %percentage:2%%\r\n\r\n[module/memory]\r\ntype = internal/memory\r\ninterval = 2\r\nformat-prefix = \" \"\r\nformat-prefix-foreground = ${colors.color3}\r\nlabel = %percentage_used%%\r\n\r\n[module/eth]\r\ntype = internal/network\r\ninterface = eno1\r\ninterval = 3.0\r\n\r\nformat-connected-underline = #55aa55\r\nformat-connected-prefix = \" \"\r\nformat-connected-prefix-foreground = ${colors.foreground}\r\nlabel-connected = %local_ip%\r\n\r\nformat-disconnected =\r\n;format-disconnected = <label-disconnected>\r\n;format-disconnected-underline = ${self.format-connected-underline}\r\n;label-disconnected = %ifname% disconnected\r\n;label-disconnected-foreground = ${colors.foreground-alt}\r\n\r\n[module/date]\r\ntype = internal/date\r\ninterval = 5\r\n\r\ndate = %a, %d %b %Y\r\ndate-alt= %Y-%m-%d\r\ntime = %H:%M\r\ntime-alt = %H:%M:%S\r\n\r\nformat-prefix = \" \"\r\nformat-prefix-foreground = ${colors.color4}\r\n\r\nlabel = %date% - %time%\r\n\r\n[module/pulseaudio]\r\ntype = internal/pulseaudio\r\nsink = alsa_output.pci-0000_00_1f.3.analog-stereo\r\nuse-ui-max = true\r\ninterval = 5\r\nformat-volume = <ramp-volume> <label-volume>\r\nlabel-muted = muted\r\nlabel-muted-foreground = ${colors.foreground}\r\nramp-volume-0 =  \r\nramp-volume-1 = \r\nramp-volume-2 = \r\n\r\n[module/battery]\r\ntype = internal/battery\r\nbattery = BAT0\r\nadapter = AC\r\nfull-at = 99\r\n\r\nformat-charging = <animation-charging> <label-charging>\r\n\r\nformat-discharging = <ramp-capacity> <label-discharging>\r\n\r\nformat-full-prefix = \" \"\r\nformat-full-prefix-foreground = ${colors.color6}\r\n\r\nramp-capacity-0 = \r\nramp-capacity-1 = \r\nramp-capacity-2 = \r\nramp-capacity-3 = \r\nramp-capacity-4 = \r\nramp-capacity-foreground = ${colors.color6}\r\n\r\nanimation-charging-0 = \r\nanimation-charging-1 = \r\nanimation-charging-2 = \r\nanimation-charging-3 = \r\nanimation-charging-4 = \r\nanimation-charging-foreground = ${colors.color6}\r\nanimation-charging-framerate = 750\r\n\r\n[module/powermenu]\r\ntype = custom/menu\r\n\r\nexpand-right = true\r\n\r\nformat-spacing = 1\r\n\r\nlabel-open = \r\nlabel-open-foreground = ${colors.color1}\r\nlabel-close =  cancel\r\nlabel-close-foreground = ${colors.color1}\r\nlabel-separator = |\r\nlabel-separator-foreground = ${colors.foreground-alt}\r\n\r\nmenu-0-0 = log out\r\nmenu-0-0-exec = i3-msg exit\r\nmenu-0-1 = reboot\r\nmenu-0-1-exec = systemctl reboot\r\nmenu-0-2 = power off\r\nmenu-0-2-exec = systemctl poweroff\r\n\r\n[module/playpause]\r\ntype = custom/script\r\nexec = echo \"\"\r\nformat-padding = 1\r\nformat = <label>\r\nformat-foreground = ${colors.foreground}\r\nformat-background = ${colors.background}\r\nclick-left = playerctl play-pause\r\n\r\n[module/next]\r\ntype = custom/script\r\nexec = echo \"\"\r\nformat-padding = 1\r\nformat = <label>\r\nformat-foreground = ${colors.foreground}\r\nformat-background = ${colors.background}\r\nclick-left = playerctl next\r\n\r\n[module/previous]\r\ntype = custom/script\r\nexec = echo \"\"\r\nformat-padding = 1\r\nformat = <label>\r\nformat-foreground = ${colors.foreground}\r\nformat-background = ${colors.background}\r\nclick-left = playerctl previous\r\n\r\n\r\n[module/spotify]\r\ntype = custom/script\r\nexec = python ~/.config/polybar/spotify.py\r\ninterval = 5\r\nformat = <label>\r\nlabel =%output:0:500:...%\r\nformat-background = ${colors.background}\r\nformat-padding = 3\r\nformat-foreground = ${colors.foreground}\r\n\r\n[settings]\r\nscreenchange-reload = true\r\n;compositing-background = xor\r\n;compositing-background = screen\r\n;compositing-foreground = source\r\n;compositing-border = over\r\n\r\n[global/wm]\r\nmargin-top = 5\r\nmargin-bottom = 5\r\n\r\n; vim:ft=dosini\r\n```\r\n\r\n## Screenshots\r\nHorizontal configuration, systray in correct position:\r\n![2018-12-03-151441_3840x1080_scrot](https://user-images.githubusercontent.com/3713164/49383207-1a71c080-f710-11e8-86d2-fd831da82d29.png)\r\nVertical configuration, systray in wrong position:\r\n![2018-12-03-151417_1920x2160_scrot](https://user-images.githubusercontent.com/3713164/49383213-1e054780-f710-11e8-8276-ca72323cf1d0.png)\r\n\r\n\r\n## Environment:\r\nXubuntu 18.04 \r\n`i3 version 4.16-37-gdbab1538 (2018-11-10, branch \"gaps-next\") © 2009 Michael Stapelberg and contributors`\r\n```polybar 3.2.1\r\n\r\nFeatures: -alsa +curl +i3 -mpd +network +pulseaudio +xkeyboard\r\n\r\nX extensions: +randr (+monitors) -render -damage -sync -composite +xkb +xrm +xcursor\r\n\r\nBuild type: RelWithDebInfo\r\nCompiler: /usr/bin/c++\r\nCompiler flags:  -Wall -Wextra -Werror -Wno-noexcept-type -O2 -pedantic -pedantic-errors\r\nLinker flags:\r\n```\r\n\r\n## Additional context\r\n* As you can see I'm forcing the bar on my Laptop display, I'm not sure if it is relevant or not."},"comment":{"url":"https://api.github.com/repos/jaagr/polybar/issues/comments/443759168","html_url":"https://github.com/jaagr/polybar/issues/1537#issuecomment-443759168","issue_url":"https://api.github.com/repos/jaagr/polybar/issues/1537","id":443759168,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0Mzc1OTE2OA==","user":{"login":"herod2k","id":3713164,"node_id":"MDQ6VXNlcjM3MTMxNjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/3713164?v=4","gravatar_id":"","url":"https://api.github.com/users/herod2k","html_url":"https://github.com/herod2k","followers_url":"https://api.github.com/users/herod2k/followers","following_url":"https://api.github.com/users/herod2k/following{/other_user}","gists_url":"https://api.github.com/users/herod2k/gists{/gist_id}","starred_url":"https://api.github.com/users/herod2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/herod2k/subscriptions","organizations_url":"https://api.github.com/users/herod2k/orgs","repos_url":"https://api.github.com/users/herod2k/repos","events_url":"https://api.github.com/users/herod2k/events{/privacy}","received_events_url":"https://api.github.com/users/herod2k/received_events","type":"User","site_admin":false},"created_at":"2018-12-03T15:53:01Z","updated_at":"2018-12-03T15:53:01Z","author_association":"NONE","body":"Removing (and fixing) xbacklight from the configuration works. I didn't think that the two things were related. I didn't see the connection."}}
{"actor":{"display_login":"herod2k"}}