The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
1

Display i3bar tray on all outputs/screens

asked 2014-05-05 10:35:58 +0000

snd gravatar image

updated 2014-05-21 10:45:04 +0000

Hi,

Is it possible to display the tray in i3bar on all screens? If not, what are the alternatives to get a tray on all screens?

Thank you.


Edit

Ok, I tried (as suggested by sycamorex)

.i3/config

bar {
    output eDP1
    status_command i3status
}

bar {
    output HDMI1
    status_command i3status
}

bar {
    output DP2 
    status_command i3status
}

as well as (specifying tray_output for every bar)

.i3/config

bar {
    output eDP1
    status_command i3status
    tray_output eDP1
}

bar {
    output HDMI1
    status_command i3status
    tray_output HDMI1
}

bar {
    output DP2 
    status_command i3status
    tray_output DP2 
}

But I get the tray only on the very right screen (HDMI1)

My xrandr output looks as follows:

$ xrandr | grep \ connected
eDP1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 309mm x 175mm
HDMI1 connected 1920x1200+3840+0 (normal left inverted right x axis y axis) 518mm x 324mm
DP2 connected primary 1920x1200+1920+0 (normal left inverted right x axis y axis) 518mm x 324mm

Any other idea to get the tray on all screens? I didn't find anything until now but it is very bad if I miss important IM notifications at work :D

Thank you

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2014-05-21 12:40:56 +0000

Adaephon gravatar image

At the moment there is no way to have a tray and the applications therein on every monitor in i3 (are there even WMs that have that have this feature?).

Although you can define tray_output for every bar in the way you described, icons will in most cases appear only in one of the configured tray. (For me the Clementine icon stays on the left display while all others and new ones move to the right display, when I restart i3 with multiple configured trays)

edit flag offensive delete link more
0

answered 2014-05-21 12:27:03 +0000

I think that sycamore is conflating "tray" and "bar". These are not the same thing. AFAIK, there is no way to put a tray on every monitor. You can have multiple bars and multiple tray_output statements, but there will only ever be one tray.

edit flag offensive delete link more
0

answered 2014-05-19 18:53:21 +0000

updated 2014-05-21 17:37:22 +0000

Edit: As pointed out I was referring to a status bar, not a tray. That obviously does not answer your question. For reasons of consistency with the question that has been edited, I'll keep my answer below intact.

If you're talking about a multimonitor setup, you can specify it for both displays in your ~/.i3/config:

bar {
        output DVI-I-1
        status_command i3status
}

bar {
        output HDMI-0
        status_command i3status
}

To identify each monitor (in my case DVI-I-1 and HDMI-0) you can use 'xrandr'

edit flag offensive delete link more

Comments

The problem with that - at least for me - is, that any tray icon will only appear in either one of the bars, but not both. While strictly speaking there is a bar on every screen, it is probably not what the questioner wanted.

Adaephon gravatar imageAdaephon ( 2014-05-20 12:35:32 +0000 )edit

Question Tools

Stats

Asked: 2014-05-05 10:35:58 +0000

Seen: 2,563 times

Last updated: May 21 '14